Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Only if you actually can special case it automatically during compilation. It could still require a few tricks if your comparison comes from a user-defined query. At a minimum it would have to be something like: figure out which column type are you using, figure out what basic type does it map to, use that type in the template.


PostgreSQL is extensible enough that runtime specialisation would be best, I think. A JIT compiler, or a compiled type-safe multi-stage[1] programming language like MetaOCaml, would give the best performance.

[1] http://www.cs.rice.edu/~taha/MSP/


or what about a java port? it's as feasible as a c++ port.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: