Mark M | 6 Aug 2012 04:48
Picon
Favicon

Questions and Feature Requests

Here are a few questions/requests.  Answers/feedback/discussion are encouraged.

Request #1:

Would it be possible to modify the "yield get" statement to allow for passing args 
and/or kwargs to the filter function in addition to the store's buffer?  This would be 
particularly useful for creating functions that return an object with a specific attribute.


Request #2:

It seems that monitors (python lists) can occupy a lot of memory for simulations with 
lots of observations.  Allthough I have not yet used it, it sounds like Stefan's collectors 
module seems to offer a solution by allowing one to write to disk in HDF5 or excel format.  

Q1:  Is there a big tradeoff in speed by choosing to write to HDF5 compared to 
holding values in memory in a python list?

Q2:  I find myself using monitored resources/stores/levels much more frequently 
than just plain monitors.  The ability to set "monitored=True" is a big productivity 
enhancement over having to manually code observations each time a resource changes 
state.  Would it be possible to allow the modeler to specify the storage method for 
monitored resources/stores/levels so they can balance between speed & memory usage?
Perhaps this could be accomplished by integrating collectors into SimPy.  I know this was
one possibility that was previously discussed.


Request #3:

A while back Norm Matloff and his students did a rather detailed study on the speed of 
various data structures for event lists ("Revisiting the Issue of Performance Enhancement 
in DES").  This included implementations in pure python and in C.  Klaus wrote that he had 
only considered the implementations in pure python and after some experimentation found 
a way to further improve upon the ideas using heapq.  I am guessing that brings us to 
where we are today.  

Q1: Has there been any further discussion about the possibility of a version of SimPy 
that is partially coded in C for faster execution?

- Mark
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Simpy-users mailing list
Simpy-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simpy-users

Gmane