Aapo Talvensaari

Results 278 comments of Aapo Talvensaari

I also did some adjustments to lua-resty-libcjson code, and now it seems like the decoding performance is closer to bundled cjson: ``` lua-resty-cjson citylots decoding time: 6.536133 ``` ``` cjson...

I did rerun citylots test with each decoder separately: ``` 1. cjson decoding time: 5.815602 2. lua-resty-libcjson decoding time: 6.349700 3. lua-resty-json decoding time: 7.014575 4. lua-resty-jsmn decoding time: 8.208794...

I have now done some adjustments in lua-resty-jsmn[1] codebase, and this citylots test now gives this (using decode2 function, and jsmn lib compiled with -O3): ``` Decoding Time: 5.956955 ```...

Let me add `lua-resty-opjson` (https://github.com/bungle/lua-resty-opjson) to this list as well (citylots): ``` Decoding Time: 5.820199 ```

@bjoe2k4 I agree with your conclusion. To make the built-in cjson even better one should consider writing it in pure LuaJIT, but that is enourmous amount of work. lua-resty-libcjson is...

I welcome a PR to this, thank you! I will make a new release when this gets added!

https://github.com/bungle/lua-resty-session/blob/master/lib/resty/session.lua#L583-L588

And you can see usage here: https://github.com/bungle/lua-resty-session/blob/master/lib/resty/session/strategies/default.lua#L31-L39

Hi, I kinda understand what you want. 1. When session is started and it is a new one, you want to execute a function (callback/event handler) to retrieve some user's...

I think we could add somekind of callbacks to session that are called if they are defined on different phases of session creation, destruction etc.