update
authorJoey Hess <joeyh@joeyh.name>
Fri, 18 Nov 2022 20:23:20 +0000 (16:23 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 18 Nov 2022 20:23:20 +0000 (16:23 -0400)
doc/bugs/performance_regression__63___init_takes_times_more/comment_15_145e29b42c46f15efc21c6d1ef9dd82d._comment

index 8348daadf068e710623ced2924894011f62bbc74..379aafa328e7bb83f51df69c7387459af49a22bf 100644 (file)
@@ -13,11 +13,8 @@ something else. Weird!
 
 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
-performance overhead. My suspicion from profiling is that it's due to
-conversion between data types. First it builts up a Text containing a SQL
-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.
+performance overhead. Opened an issue: 
+<https://github.com/yesodweb/persistent/issues/1441>
 
 The test program: