Conversation

Notices

  1. Just spent 3 hours reducing the startup time of my !python plotting script from 10s to 3s - which massively reduced its frustration factor ☺

    Monday, 09-Jul-12 16:28:22 UTC from identi.ca at 49°10'1"N 8°29'32"E
    1. @arnebab Check out cython if you have a real need for speed. It even supports Python 3.2 ☺

      Monday, 09-Jul-12 16:35:18 UTC from web
      1. I did not need real speed but reduced startup time. I already have heavy caching in there which changes algorithms from O(N²) to O(1) :)

        Tuesday, 10-Jul-12 08:19:45 UTC from identi.ca at 49°10'1"N 8°29'32"E
      2. I think I should write an article on using pickle as a generic function cache for python… I just decorate the functions with @cached…

        Tuesday, 10-Jul-12 08:23:47 UTC from identi.ca at 49°10'1"N 8°29'32"E