Skip to content

🔖 release v1.2.0

Compare
Choose a tag to compare
@kkharji kkharji released this 21 Sep 09:38
· 36 commits to master since this release

✨ Features

3420a3a make opts.lazy false by default and add opts.keep_open

Before lazy was default and there was no way of changing that. I've
decided to make it optional because it seems that:

  1. People expects sqlite {} or sqlite:extend {} to create all the
    defined table in advance.

  2. Performance impact of initializing db object is only 1.0 slower in
    microseconds, so it seems to not be as important as I thought it
    would:

    -- test/lazy.lua
     Benchmark #1: 'Logical Component'
       Time(mean ± σ):     23.7 μs ±  18.7 μs
       Range(minmax):   17.4 μs102.3 μs  20 runs
     Benchmark #2: 'Full Initialization'
       Time(mean ± σ):     28.7 μs ±  12.9 μs
       Range(minmax):   24.1 μs83.1 μs  20 runs
     Summary
       'Logical Component' ran
       1.2 ± 1.1 times faster than 'Full Initialization'
  • 3d89dc1 add Bookmark Manager Example

🐛 Bug Fixes

edf642e fix Emmylua completion

This used to work, but maybe with new versions of sumneko_lua. It
stopped working.