in reply to forks::shared speed problem
forks::shared is pretty cool, but it uses IPC and tied variables, both of which are relatively slow. I suspect you would have better performance with one of the fast IPC modules like IPC::MM, BerkeleyDB, or even DBI and MySQL, but they would require significant changes in your code. If you are concerned about speed, don't use the tied interface on any of these. You can always call methods like FETCH() directly instead.