Tuesday, November 4, 2014

The internals H2O (or how to write a fast server)

Yesterday, I had the opportunity to speak at the HTTP2Conference held in Tokyo.

Until now, I have rather been silent about H2O since I think it is still premature for wild use. But you do not need to worry about such thing in a technology conference, so I happily talked about the motives behind H2O, and its implementation.

IMO the talk should be interesting not only to people working with HTTP server implementations but also to those interested in programming in general, since it covers the common performance pitfalls (or misconceptions as I see) in many server implementations.

Below are the slides and the recorded video of my presentation.

Enjoy!

PS. Please forgive me for the provocative attitude in the questions raised in the last part of the slides. They were intentionally written as such in order to spark discussion at the hall.



my talk starts a 3h15m (in Japanese)

Related links:

251 comments:

  1. You mentioned speed without using SIMD instructions. I see that you are doing a subtraction for every char, would it be faster to use SIMD to do 4 substractions at once?

    ReplyDelete
    Replies
    1. Recently a PR that uses pcmpestri (a SSE4.2 instruction) has been merged. The PR is https://github.com/h2o/picohttpparser/pull/5 and the benchmark numbers are https://github.com/h2o/picohttpparser/#benchmark

      Delete
  2. I was looking at the src/main.c and found that each thread is creating it's own listeners queue using the server listeners. Isn't this a mistake ?
    What will happen when there is more than one thread ?
    All of then will wakeup and try to manage the accepted socket ?
    Why not accepting the listeners only in main process and distribute the accepted sockets to threads after ?

    Am I missing something here ?

    Cheers !

    ReplyDelete
  3. Online channels have revamped the methodology in education where aspirants can access knowledge from any part of the globe. To have effective access to this facility it is important to have a professional portal like Management assignment help. See more make my thesis

    ReplyDelete
    Replies
    1. watch indy 500 live

      http://watchindy500live.xyz/

      http://watch-indy-500-live.blogspot.com/

      https://www.pinterest.com/watchindy500liv/

      http://vk.com/watchindy500live

      https://twitter.com/watchindy500liv

      https://www.facebook.com/Watch-Indy-500-live-stream-1772286749649379/

      Delete
  4. Get the latest information about RRB Result
    and RRBResult2016 at our site.



    ReplyDelete
  5. solidworks crack
    solidworks download
    solidworks tutorial
    learn solidworks online
    http://solidworkscrack.blogspot.com/
    http://solidworkscrack.blogspot.com/2016/06/solidworks-free-download-full-version.html
    http://solidworkscrack.blogspot.com/2016/06/learn-solidworks-tutorials-online.html http://solidworkscrack.blogspot.com/2016/06/learn-solidworks-tutorials-online.html

    ReplyDelete
  6. Create short url موقع اختصار الروابط http://www.3nwan.net/vb
    http://www.sheikhmaghreb.com/

    ReplyDelete

  7. All the tips are really amazing, I used to blog back in 2012-2013 but due to some personal crisis let it high and dry. Now I am thinking of getting back at it. After reading your post I realized that , we must have dedication and must have our priorities straight if we want to achieve something.SolidWorks 2017 Crack

    ReplyDelete

  8. شركات للربح من اختصار الروابط
    موقع اختصار الروابط
    Create short url
    http://www.3nwan.net/vb
    Create short url
    موقع اختصار الروابط

    قائمة أفضل شركات الربح من اختصار الروابط
    تعتبر طريقة الربح من إختصار الروابط من أفضل طرق الربح من الأنترنت نظرا لسهولتها من جهة وفي كونها لا تتطلب منك مجهودا كبيرا للربح منها فكل ما عليك فعله هو تحويل الروابط مثل روابط المواقع المهمة أو روابط تحميل الملفات أو أي نوع آخر يجذب الناس للضغط عليه في موقع الشركة ثم تقوم بنشر الرابط الجديد في موقعك أو عبر المنتديات وشبكات التواصل الإجتماعي.
    http://www.sheikhmaghreb.com/
    خدمة اختصار الروابط الأولى من نوعها برؤية عربية احترافية.. اختصر روابطك الطويلة بضغطة زر إلى روابط قصيرة يسهل تذكرها.
    جلب الحبيب
    الشيخ الروحاني
    هته الشركة تدفع أسعار جيدة للألف ظهور خاصة بالنسبة للدول العربية فمثلا تدفع 1.14 دولار للألف زائر من السعودية و 1.13 دولار من قطر و 1.23 دولار من الأردن و 1.85 من الإمراات العربية المتحدة 2.65 دولار من العراق و 0.57 دولار من مصر و 0.43 دولار من الجزائر والمغرب و 0.41 من لبنان و 0.42 من عمان و 0.44 من الكريت و 0.37 من سوريا أما بالنسبة للبلدان الأجنبية فهي تدفع 3.93 دولار للألف زائر من الولايات المتحدة الأمريكية و 2.78 من المملكة المتحدة و
    الشيخ الروحاني
    جلب الحبيب
    الحد الأدنى للدفع: 5 دولار
    طريقة الربح من موقع اختصار الروابط شركات الربح من اختصار الروابط شرح الربح من اختصار الروابط


    ReplyDelete
  9. The share your really gives us excitement. Thanks for your sharing. If you feel tired at work or study try to participate in our games to bring the most exciting feeling. Thank you!
    hotmail sign in | red ball 1

    ReplyDelete
  10. Jobs Chat is one of the biggest Indian Job Site so here you will getAll Government jobs Syllabusso

    ReplyDelete

  11. Wonderful blog! I found it while searching on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Many thanks.
    tanki online 3 | 2048 online

    ReplyDelete
  12. wow very nice..posttt
    www.shayariimages2017.com

    ReplyDelete
  13. A good informative post that you have shared and thankful your work for sharing the information. I appreciate your efforts and all the best. Got some appealing information and would like to give it a try. Applaud your work and keep sharing your information. Printable Calendar


    ReplyDelete
  14. Best Outfits For Young ladies , Womens And Girls
    We Have Some For You In Your Budget For more…..
    Eid Mubarak Poems

    ReplyDelete
  15. Exclusive Collection of Salwar Suit and Many More…
    We Have Some For You In Your Budget For more…
    Plz visit:- Silk sarees

    ReplyDelete
  16. Exclusive Collection of Salwar Suit and Many More…
    We Have Some For You In Your Budget For more…
    Plz visit:- Pakistani Suit

    ReplyDelete
  17. Super website with a great sharing and amazing stories is ur web.. please keep doing what u do now.. Heart Clipart thanks to you, Tiger Clipart
    It's a great sharing and really informative.. will keep following ur web. Star Clipart thanks to you and ur great website.
    Tree clipart

    ReplyDelete
  18. Fancy designer wear our website and reasonable price More…
    We Have Some For You In Your Budget For more…
    Plz visit:- Wedding Dresses

    ReplyDelete
  19. Happy 4th of July Flag 2017: Flag of America is not just a piece of cloth but a matter of pride for every citizen of the country where it stands for the pride of the country and wave in the air to represent the nations.
    4th of july flag
    4th of July Celebration
    4th July 1776 History
    Funny 4th of July Memes Images

    ReplyDelete
  20. Freedom is something that money can't buy.. And most honorable of all are the ones who defend it. So on this 4th of July. Let's salute those who stand in service to America!
    happy 4th of july images
    Happy 4th of July Messages
    Happy 4th of July Wishes 2017
    4th of July Images for Facebook

    ReplyDelete
  21. The most unique way to celebrate Friendship Day would be hold a gathering for your favorate images,quotes,hd wallpapers,messages,pics,photos and many more... Be that as it may, this thought needs a touch of arranging and exertion as you have to choose where to post(facebook,whatssapp,twitter,instagrame etc..) Once that is done, ring your pals and simply have your indulgence !

    happy friendship day images
    happy friendship day 2017
    friendship day quotes
    happy friendship day quotes
    friendship images with quotes
    friendship day messages
    friendship day wishes
    happy friendship day message
    friendship day status
    friendship day date
    happy friendship day date
    happy friendship day images

    ReplyDelete
  22. An extraordinary thought to praise friendship in an inventive way is make a blurb on Friendship Day this year.
    friendship day 2017
    friendship images
    friendship day pic
    friendship day pics
    friendship day photos
    For some the best sort of Friendship Day festivity is maybe a heart-to-heart converse with a best friend Sharing everything that has made a difference to you and your frinds for so......
    friendship day wallpapers
    photos of friendship
    friendship quotes images

    friendship images hd
    true friendship images

    ReplyDelete
  23. The blog or and best that is extremely useful to keep I can share the ideas of the future as this is really what I was looking for, I am very comfortable and pleased to come here. Thank you very much.

    Halloween Costume Ideas Images for Couples
    How to make Halloween Costumes for Girls and Women
    Watch Video on Youtube to make Halloween Costumes for Girls and Women
    Tips to make your Best Halloween Costume

    ReplyDelete
  24. The information you have posted is very useful. Thank you for nice and wonderful Information.
    Freshers Job
    Government Job
    Bank Job
    Walk In Drive
    OFF Campus Drive

    ReplyDelete
  25. The information you have posted is very useful. Thank you for nice and wonderful Information.
    Freshers Job
    Government Job
    Bank Job
    Walk In Drive
    OFF Campus Drive

    ReplyDelete

  26. Thank you so much for Sharing this article Awesome post People also like this information
    SBI Help Visit here I really really appreciate this article

    ReplyDelete
  27. a pride for me to be able to discuss on a quality website because I just learned to make an article on
    cara menggugurkan kandungan

    ReplyDelete
  28. Thanks for sharing this nice post awesome keep sharing
    Happy New Year 2018

    ReplyDelete
  29. Here are some great and wonderful Valentines Day Gift Ideas for the woman your life. Year by year, there is no denying that coming up with the most perfect and exciting Valentine gift ideas, found right here..valentine week 2018

    ReplyDelete
  30. This is very interesting, You’re a very skilled blogger. I have joined your feed and look forward to seeking more of your fantastic post. Also, I have shared your web site in my social networks!
    Regards - www.office.com/setup
    www.office.com/setup

    ReplyDelete
  31. kindle paperwhite help if you need any help regarding your kindle paperwhite so call us our dedicated kindle paperwhite support team

    ReplyDelete
  32. Happy New Year 2019 is basically celebration of New Year which is coming to the people. People celebrate New Year’s night 2019 which is held on 31 December. In this Night there people having a lot of fun and enjoyments. Many People hold enjoyments parties at home or in the different hotels. Try to make your new year 2019 happy full of enjoyments and excitements. Occasionally there is public holiday in large cities and thousands of people enjoy the New Year night 2019. People pray that the upcoming year will bring lots of happiness and enjoyment in their life. People do parties and enjoyment in their home or in many hotels. Visit These Websites For Happy New Year 2019 Wishes Quotes Message Images Greetings Wallpapers Happy New Year 2019 GIF Images How to Celebrate Happy New Year Happy New Year Message 2019 In USA UK Australia New Zealand Happy New Year 2019 Wishes Happy New Year Status DP HD Images Happy New Year 2019 Greetings Happy New Year Wishes 2019Happy New Year SMS 2019Happy New Year Quotes 2019Best Inspirational Happy New Year 2019 Wishes Quotes Message Happy New Year Images 2019 Happy New Year Greetings 2019Merry Christmas Wishes 2018 For Boyfriend Girlfriend Wife Husband & More Stuffs For You !!!!
    --------------------------------------------------------------------------------------
    Happy New Year 2019
    Happy New Year Wishes 2019
    Happy New Year SMS 2019
    Happy New Year Quotes 2019
    Happy New Year Message 2019
    Happy New Year Images 2019
    Happy New Year GReetings 2019

    ReplyDelete
  33. Happy New Year 2019 is basically celebration of New Year which is coming to the people. People celebrate New Year’s night 2019 which is held on 31 December. In this Night there people having a lot of fun and enjoyments. Many People hold enjoyments parties at home or in the different hotels. Try to make your new year 2019 happy full of enjoyments and excitements. Occasionally there is public holiday in large cities and thousands of people enjoy the New Year night 2019. People pray that the upcoming year will bring lots of happiness and enjoyment in their life. People do parties and enjoyment in their home or in many hotels. Visit These Websites For Happy New Year 2019 Wishes Quotes Message Images Greetings Wallpapers Happy New Year 2019 GIF Images How to Celebrate Happy New Year Happy New Year Message 2019 In USA UK Australia New Zealand Happy New Year 2019 Wishes Happy New Year Status DP HD Images Happy New Year 2019 Greetings Happy New Year Wishes 2019Happy New Year SMS 2019Happy New Year Quotes 2019Best Inspirational Happy New Year 2019 Wishes Quotes Message Happy New Year Images 2019 Happy New Year Greetings 2019Merry Christmas Wishes 2018 For Boyfriend Girlfriend Wife Husband & More Stuffs For You !!!!
    --------------------------------------------------------------------------------------
    Happy New Year 2019
    Happy New Year Wishes 2019
    Happy New Year SMS 2019
    Happy New Year Quotes 2019
    Happy New Year Message 2019
    Happy New Year Images 2019
    Happy New Year GReetings 2019

    ReplyDelete
  34. On the off chance that you might want to move documents by email or the web to other PC clients and to ensure that your records are coherent, the best choice is to change over them to PDF organize. fill in form

    ReplyDelete
  35. This comment has been removed by the author.

    ReplyDelete
  36. I'm shakshi.I am working in India top most Escort serviceMumbai EScorts.If u want to join the all facility of escorts Bhubaneswar Escorts.pls call me & whatssap Puri Escorts
    visit the sites. Cuttack Escorts or follow me.jaipur Escorts

    ReplyDelete

  37. Hi friends ! I'm Archana Kumari. I like to have bed relationship with different persons rather than with a single man for the whole of life. Not only is this my notion , but also is this fact that the secret organs are made for enjoyment.
    Please follow me on the links given bellow.


    Mumbai Escorts
    Mumbai Call girls
    Escorts in Kolkata

    Escorts in Kolkata
    Escorts In kolkata
    Jaipur Call girls


    Kolkata Escorts
    Call girl in Kolkata
    House wife escorts in Kolkata
    If you are interested in me and my ideology ,then you are invited to my bed. Thanks.
    ========================================================

    ReplyDelete
  38. Oceanofmobile
    Do you want to crack your softwares or want any generator and activator for personal computers and mac. Get serial keys and mode of any software to activate
    oceanofmobile.com

    ReplyDelete
  39. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information.

    www.office.com/setup
    www.norton.com/setup
    office.com/setup

    ReplyDelete
  40. Hey Thanks for sharing this valuable information with us. I will come back to your site and keep sharing this information with us.
    Best Regards - www.office.com/setup
    www.office.com/setup
    www.office.com/setup

    ReplyDelete

  41. Great Article! i'm Strictly looking forward for your next information.
    Whatsapp Status

    ReplyDelete
  42. Webroot.com/safe is a protection software solution that communicates with the cloud avoiding the hassle to manage the signature updates to deploy. for office setup visit office.com/setup

    ReplyDelete
  43. you will be choice to the high quality of bangalore escorts
    girls meet in the other city of girls to converse with the house wife and school girls .so are good liking in the eyes and face are so most beauty with the other girls.
    https://www.payalpandya.com
    https://www.payalpandya.com/about.html
    https://www.payalpandya.com/services.html
    https://www.payalpandya.com/gallery.html
    https://www.payalpandya.com/blog.html
    bangalore escorts
    escorts in Bangalore
    bangalore escorts service
    call girls in bangalore

    ReplyDelete
  44. you have visit in the bangalore escorts
    cite with meet to hotel are best fantasia programmer to the all are enroot to party dance and romantic song with by very hard dies and pure feed wine and Rome to used all girls and boy have to be good enjoy
    https://www.whollymodels.com
    https://www.whollymodels.com/about.php
    https://www.whollymodels.com/services.php
    https://www.whollymodels.com/gallery.php
    https://www.whollymodels.com/rates.php
    https://whollymodels.com/blog/
    bangalore escorts
    escorts in Bangalore
    bangalore escorts service
    https://www.whollymodels.com

    ReplyDelete
  45. you have visit in the bangalore escorts
    cite with meet to hotel are best fantasia programmer to the all are enroot to party dance and romantic song with by very hard dies and pure feed wine and Rome to used all girls and boy have to be good enjoy
    https://www.whollymodels.com
    https://www.whollymodels.com/about.php
    https://www.whollymodels.com/services.php
    https://www.whollymodels.com/gallery.php
    https://www.whollymodels.com/rates.php
    https://whollymodels.com/blog/
    bangalore escorts
    escorts in Bangalore
    bangalore escorts service
    https://www.whollymodels.com

    ReplyDelete
  46. They well prepared to meet people and visit new places and find out the destination. The escorts in Goa are excellent in the subject of providing in personal services. In call providers want customers to come and meet the girl.
    Nainital escorts
    Escorts in Goa
    Jaipur Call Girls
    Jodhpur Escorts
    Dehradun Escorts
    Goa Escorts
    Jaipur Escorts
    Nainital Call Girls
    Dehradun Escorts

    ReplyDelete
  47. We can assure our clients to receive the dependable, sophisticated and stunning escort service in Jaipur from our end. You will find escorts who understand this to look after the consumers and provide services gratifying.
    Nainital Escorts service
    Delhi Escorts
    Jaipur Call Girls
    Goa Escort
    Jaipur Escorts
    Goa Escorts
    Dehradun Escorts
    Nainital Escorts
    Escorts in Jaipur
    Ramngar escorts

    ReplyDelete
  48. Hey There. I found your blog using msn. This is a very well written article. I’ll be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I’ll definitely return.
    Happy Valentines Pictures
    Valentines Day 2019 Messages

    ReplyDelete
  49. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information.
    www.norton.com/setup

    ReplyDelete
  50. Very very nice shayari thanks for sharing I loved it
    hindi shayari
    Love Shayari

    ReplyDelete
  51. Thanks For sharing such an amazing article, I really love to read your content regularly.Amazing!!! I like this website so much it’s really awesome. I have also gone through your other posts too and they are also very much appreciates able and I’m just waiting for your next update. positive quotes about life |positive quotes for work |short positive quotes | positive thoughts quotes |positive quotes |
    Enjoy Our collection.

    ReplyDelete
  52. This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic. Winston Churchill Quotes ||funny Winston Churchill Quotes ||Winston Churchill Quotes democracy || Winston Churchill Quotes on europe||Best Winston Churchill Quotes ||famous Winston Churchill Quotes

    ReplyDelete

  53. Appreciating the hard work you put into your site and detailed information you offer. It’s nice to come across a blog every once in a while that isn’t the same out of date rehashed material, Asking questions are truly good thing if you are not understanding something fully, except this article presents pleasant understanding yet, Please stay us informed like this. Thank you for sharing.

    This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic.

    great faith quotes||faith quotes bible||faith quotes images

    ReplyDelete

  54. After 15 years of serving high-quality Indian cuisine to curry-loving oxfordians as the oxford’s best Indian restaurant, Tree Hotel Iffley is now one of the best takeaway Indian restaurant. They are sering all kind of Indian food north Indian, delhi street foods, Veg, Non -Veg etc. The people of oxford or near by areas always come to taste the spicy food by an Indian chefs at Tree hotel
    restaurants in oxford centre
    Indian Restaurant Oxford

    ReplyDelete
  55. Hospital and Medical Cleaning is a major critical when it comes to hygiene and patient safety. Ensuring medical areas within hospitals, and clinics are disinfected and cleaned to the best possible standard is essential for cleaning department.
    medical supplies online birmingham

    ReplyDelete