Lukasz Szybalski
2018-10-06 22:00:18 UTC
Hello,
I have an enterprise system that is creating a class but it takes a long
time to initiate. About 2 sec, 90K _setitem from pickle. Nothing to
profile, since OS cashes the file its as fast as it gets.
I'm trying to find a way in pyramid where I can:
#store below at start, of the process, let it initiate,
#then somehow make it read only,
#so that a process can use it later and modify its own copy
from enterprise import Contract
my= Contract()
#rest of the program
my2 = copy my (or copy on write, similar how qcow format works)
my2.find_contract('abc')
my2.add_name('Lucas')
return (my2.stuff)
I don't seem to be finding the right terminology, or technique to do this,
and where to place it in pyramid?
Thanks
Lucas
I have an enterprise system that is creating a class but it takes a long
time to initiate. About 2 sec, 90K _setitem from pickle. Nothing to
profile, since OS cashes the file its as fast as it gets.
I'm trying to find a way in pyramid where I can:
#store below at start, of the process, let it initiate,
#then somehow make it read only,
#so that a process can use it later and modify its own copy
from enterprise import Contract
my= Contract()
#rest of the program
my2 = copy my (or copy on write, similar how qcow format works)
my2.find_contract('abc')
my2.add_name('Lucas')
return (my2.stuff)
I don't seem to be finding the right terminology, or technique to do this,
and where to place it in pyramid?
Thanks
Lucas
--
http://lucasmanual.com/ <http://lucasmanual.com/blog/>
--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+***@googlegroups.com.
To post to this group, send email to pylons-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAKkTUv3qgT%2BUk0-uvLB1owZEA3W%3D-7XA-wkiyZbteWHPAcO6vg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
http://lucasmanual.com/ <http://lucasmanual.com/blog/>
--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+***@googlegroups.com.
To post to this group, send email to pylons-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAKkTUv3qgT%2BUk0-uvLB1owZEA3W%3D-7XA-wkiyZbteWHPAcO6vg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.