A guide to analyzing Python performance
一篇 Python 性能分析方面的好文,介绍了分别用 unix time命令和 context manager 来粗略/精细地测试 Python 脚本的运行时间; 使用 line_profiler 库 精细衡量每行代码的执行时间; 使用 memory_profiler ...!-->
一篇 Python 性能分析方面的好文,介绍了分别用 unix time命令和 context manager 来粗略/精细地测试 Python 脚本的运行时间; 使用 line_profiler 库 精细衡量每行代码的执行时间; 使用 memory_profiler ...!-->
这篇 blog 详尽阐述了把现有的 UserModel 迁移到 Django 1.5 的 Custom User Model 所需的十几个步骤和注意事项。
对打算迁移 UserModel 的同学来说,是一份很不错的checklist!
Continue reading →IE又中枪了。 老版本的IE浏览器 (< IE9) 提交 form 数据时,会尽可能地使用Latin-1编码, 而不是群众喜闻乐见的 utf-8 编码。
✓这个无法用Latin-1编码的字符会迫使IE使用 utf-8,从而简化了server端的实现。
同理,Ruby on ...
Continue reading →