- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | wangchun |
|---|---|
| Recipients | wangchun |
| Date | 2009-04-30.10:13:33 |
| SpamBayes Score | 1.279532e-13 |
| Marked as misclassified | No |
| Message-id | <1241086416.5.0.850110966894.issue5885@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
|---|
uuid.uuid1() currently uses two different ways to generate a uuid. If the system call "uuid_generate_time" is available, uuid1() uses the system call via the ctypes interface, otherwise, it uses pure Python code to generate a uuid. The problem is, the C interface "uuid_generate_time" is even slower than the Python code. The ctypes interface is too slow. According to my test, it took 55 microseconds to generate a uuid via ctypes interface but only 45 microseconds via the Python code. I also tried to test the performance of the "uuid_generate_time" C API itself. It takes C code 12 microseconds. Most of the time were wasted on ctypes. I believe we need to drop ctypes and write a Python extensions in C for this job. |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2009-04-30 10:13:36 | wangchun | set | recipients: + wangchun |
| 2009-04-30 10:13:36 | wangchun | set | messageid: <1241086416.5.0.850110966894.issue5885@psf.upfronthosting.co.za> |
| 2009-04-30 10:13:35 | wangchun | link | issue5885 messages |
| 2009-04-30 10:13:34 | wangchun | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
