celery/celery — pull request #2111 by malinoff (2014-06-27 06:12:58+00:00)
Title: Move base64 to utils.serialization

I don't want to re-write `b64encode/b64decode` functions, but when I import them from `celery.security.serialization` I also import OpenSSL, which is very slow and cause almost 1 million calls (from cProfile):
```
996542 function calls (972825 primitive calls) in 0.971 seconds
```
With my patch, importing these functions from `celery.utils.serialization` cause almost 8x times speed up:
```
127645 function calls (122927 primitive calls) in 0.179 seconds
```