Felipe Lessa
7b9e83366b
Allow persistent-2.2.
2015-06-24 11:14:11 -03:00
Felipe Lessa
774bc18fa1
Force the test suites to use a lot less memory.
...
Works fine on my machine using GHC 7.10 with these limits. Note that
I've activated the in-place compaction GC.
2015-05-31 23:22:21 -03:00
Felipe Lessa
0cca9cd086
Use HashMap for SessionMap.
...
It's a bit faster and uses a bit less memory.
2015-05-31 23:09:02 -03:00
Felipe Lessa
3e33c58af0
Generalize session data (huge commit).
2015-05-31 11:07:23 -03:00
Felipe Lessa
faae95312a
Use cereal for 2x improvement in time and space for persistent.
...
Now the peak memory usage of the persistent test suite sits at
2 GiB (752 MB max residency). It also uses a lot less CPU time.
2015-05-28 13:34:45 -03:00
Felipe Lessa
80f121f57b
Throw exceptions from persistent's {insert,replace}Session.
...
Now all tests are green for serversession-backend-persistent.
2015-05-28 00:48:44 -03:00
Felipe Lessa
8a6df8cc6c
Add persistent storage tests to using SQLite and PostgreSQL.
...
Currently failing tests:
1) SqlStorage on PostgreSQL insertSession throws an exception if a session already exists
2) SqlStorage on PostgreSQL replaceSession throws an exception if a session does not exist
3) SqlStorage on SQLite insertSession throws an exception if a session already exists
4) SqlStorage on SQLite replaceSession throws an exception if a session does not exist
2015-05-28 00:38:49 -03:00
Felipe Lessa
95194a09ca
Fix URL references.
2015-05-26 01:00:20 -03:00
Felipe Lessa
d462d61b32
Use ConnectionPool type synonym, same as Yesod's scaffold.
2015-05-25 18:54:20 -03:00
Felipe Lessa
71aff2dd94
Separate into three different packages.
...
serversession and serversession-backend-persistent build,
serversession-frontend-yesod is broken.
2015-05-23 01:42:13 -03:00