You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it calculates crc of session before commiting it and then compares new sum with old one.
So if instead of crc as a hash we will use result of JSON.stringify (i.e. const hash = (sess) => JSON.stringify(sess)) we can shave of some time from request/response processing. Not much, but it will be -1 dependency. Not sure if memory consumption will increase, i think it depends on garbage collection.
Resolves #131 and #156 (no need in faster crc calculator)
The text was updated successfully, but these errors were encountered:
Currently to check if session changed
koa-session
does these:session/lib/context.js
Line 150 in 1600aab
session/lib/context.js
Line 98 in 1600aab
session/lib/util.js
Line 35 in 1600aab
So if instead of crc as a hash we will use result of JSON.stringify (i.e.
const hash = (sess) => JSON.stringify(sess)
) we can shave of some time from request/response processing. Not much, but it will be -1 dependency. Not sure if memory consumption will increase, i think it depends on garbage collection.Resolves #131 and #156 (no need in faster crc calculator)
The text was updated successfully, but these errors were encountered: