タグ

pythonとtipsに関するrestartrのブックマーク (4)

  • http://codeconf.s3.amazonaws.com/2011/pycodeconf/talks/PyCodeConf2011%20-%20Raymond%20Hettinger.pdf

    restartr
    restartr 2011/12/30
    • Indentation • Iterator Protocol • Generators • List comps, set comps, dict comps, and genexps • Two-way generators • Decorators • With-statement • Abstract Base Classes
  • tornadoの話 - Doge log

    話題のtornadoについてちょっと書いておきます。 フレームワークについて tornadoは一応wsgiをサポートしていますが気で組むなら独自で持ってるAPIの方がよいでしょう。 独自のAPIの方は必要最低限な処理しかしません。 無駄なアプリケーションコードを少なくすることでパフォーマンスを得ています。 もちろんアプリケーションコード実行間はブロックしていますが、その時間をなるべく少なくしようという 観点で薄いフレームワークになっています。 (ほとんど1ファイルの小さなモジュールになっているはずです) ここで変にwsgi対応のFWを乗せたりしようもんならパフォーマンスはかなり落ちるのでやらない方がいいでしょう。 wsgiはインターフェイスがぬるいためFW側で結構な量のコード実行することになります。 ハッキリいってpythonはそこまで速くありませんのでチリも積もれば。。。といった感じで

    tornadoの話 - Doge log
    restartr
    restartr 2011/11/01
    tornadoは前提を踏まえて作りこまない限り、それほどのスループットを出せないはずです。
  • VIM as Python IDE - 200ok

    Update: This is a re-post of an older blog post of mine. Originally it was posted on my personal blog where it has >130 comments and ~ 250’000 views over the last years. I’m deprecating my personal blog in favor of this 200OK blog. Finding the perfect IDE for Python isn’t an easy feat. There are a great many to chose from, but even though some of them offer really nifty features, I can’t help myse

    VIM as Python IDE - 200ok
  • GAE/Python で HTTPリクエストを並列化 « Stop Making Sense

    August 2011 (1) July 2011 (1) June 2011 (2) April 2011 (2) March 2011 (2) February 2011 (2) January 2011 (6) December 2010 (6) November 2010 (5) October 2010 (8) September 2010 (2) August 2010 (3) July 2010 (9) June 2010 (4) March 2010 (1) February 2010 (7) January 2010 (2) はじめに GAE/Python ではスレッドや子プロセス等による並列化が出来ないので、タスクキューを使うのが一般的です。 しかし、URLフェッチについては、非同期リクエストを利用することで、タスクキューを使わずに複数のHTTP通信を同時実行出来ます。

  • 1