Chula comes with a guid generator class who’s implementation is a bit naive. Considering Python already has (probably much better) functionality builtin, I figured I’d see how fast they are.
Here’s the way I tested them:
# Python imports from random import randrange from uuid import uuid1, uuid4 import time # Chula imports from chula.guid import guid count = 10000 def timeit(fcn): def wrapper(): start = time.time() fcn() print('%s %fs' % (fcn.
Read more...
I’ve been working long and hard now for the past three months writing a brand new version of this website. It’s written from scratch, and uses all sorts of neat technologies. There were a few different reasons why I took the time to rewrite everything. The most important reason probably was that my codebase was getting really crazy and difficult to maintain. It’s much cleaner now, and far easier to extend and maintain.
Read more...