eudoxia0 / crane

An ORM for Common Lisp.
http://eudoxia.me/crane/
201 stars 19 forks source link

Does Crane capable of returning hash tables #8

Closed fselcukcan closed 10 years ago

fselcukcan commented 10 years ago

I need a postgres driver in lisp. I use postmodern but I think because it reruns kinds of lists the memory increases when I query my web app with apache benchmark heavily -c 40 .n 1000 for some number of times. Does Crane capable of returning hash tables for more efficiency?

fselcukcan commented 10 years ago

Or vectors for same memory efficiency? I have recently knew vectors are more efficient, I think when enumarated indexed hashtables compared to vectors.

eudoxia0 commented 10 years ago

No, neither. In my defense, this is a problem of cl-dbi (And possibly the underlying database drivers). I would write a filter to turn the output of queries into a vector of hash tables, but it would make it slower, not faster, since cl-dbi would still be using lists of lists.