Closed magicbear closed 7 months ago
Test app: def perf(): uuid1 = toUUID(uuid.uuid4()) uuid2 = toUUID(uuid.uuid4()) t1 = time.time() for i in range(10000000): s=uuid1==uuid2 print(1000*(time.time()-t1))
Original by str spend: 5834.417343139648 Patched : 337.04090118408203
Test app: def perf(): uuid1 = toUUID(uuid.uuid4()) uuid2 = toUUID(uuid.uuid4()) t1 = time.time() for i in range(10000000): s=uuid1==uuid2 print(1000*(time.time()-t1))
Original by str spend: 5834.417343139648 Patched : 337.04090118408203