Implemented automagic block_size
Fixed a QA test
Merged from master
Merge branch 'master' into smart-block_size
Merge branch 'master' into smart-block_size
Splitted calc_num_tasks for event based an other calculators
Minor fix
Added a sanity check to make sure that the stored num_tasks is correct
Fixed a couple of comments
Fixed TaskArgGenTestCase
inserted the GMFs with the CacheInserter instead of the BulkInserter
Moved the CacheInserter at top-level
Added a CacheInserter.flushall functionality
Added an atexit handler as a safety net
Called a .flushall() at the end of the computation
Fixed event_based/core_test.py
Enlarge the inserter cache to 10,000 elements, a good number from my experiments on Cobain
Enhanced the performance_view to display the duration per task too
Added more instrumentation to the CacheInserter
Used a weakref.WeakSet just to stay on the safe side against memory leaks