-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Hi this code:
(if-let [elem-type (when (= (first type-name) \_)
(apply str (rest type-name)))]
(.setObject s i (.createArrayOf conn elem-type (to-array v)))
(.setObject i s v))could probably be sped up considerably without any impact to functionality.
(if-let [elem-type (when (str/starts-with? type-name "_") (subs type-name 1))]
(.setObject stmt idx (.createArrayOf conn elem-type (to-array v)))
(.setObject stmt idx (clj->pgobj v)))Yes, we are splitting microseconds here. It's just that slightly better performance isn't even less readable in this case.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels