This commit is contained in:
Joey Hess 2022-11-18 16:23:20 -04:00
parent 3e20daccdd
commit 63b33d4181
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -13,11 +13,8 @@ something else. Weird!
However, I also dumped the database to a sql script. Running that script However, I also dumped the database to a sql script. Running that script
with sqlite3 takes only 2.39 seconds. So, persistent-sqlite does have some with sqlite3 takes only 2.39 seconds. So, persistent-sqlite does have some
performance overhead. My suspicion from profiling is that it's due to performance overhead. Opened an issue:
conversion between data types. First it builts up a Text containing a SQL <https://github.com/yesodweb/persistent/issues/1441>
statement (and not using a Builder). Then it uses encodeUtf8 on it to get
a ByteString, and then it uses useAsCString. So there are 2 or 3 copies
of the input data, which takes time and increases the allocations.
The test program: The test program: