GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Aral Balkan (aral@mastodon.ar.al)'s status on Wednesday, 05-Jul-2023 03:58:34 JST Aral Balkan Aral Balkan

    FML, something that’s changed between Node 12.16.2 and 18.16.0 has made the OCSP stapling library I’m using¹ 1000× slower (~4ms vs ~4s per request).

    At least I know where the issue is… Tomorrow, I dig into the library to try and narrow it down further.

    (The network graph in Firefox was useful as it showed that the problem was with the TLS Setup. And 0x² and its flame graphs helped me narrow it down further.)

    ¹ https://github.com/indutny/ocsp#ocsp-apis-for-nodejs-
    ² https://github.com/davidmarkclements/0x#readme

    #Kitten #TLS #OCSP #NodeJS #dev

    In conversation Wednesday, 05-Jul-2023 03:58:34 JST from mastodon.ar.al permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
      GitHub - indutny/ocsp: OCSP Stapling/Checking for node.js
      OCSP Stapling/Checking for node.js. Contribute to indutny/ocsp development by creating an account on GitHub.
    2. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
      GitHub - davidmarkclements/0x: 🔥 single-command flamegraph profiling 🔥
      🔥 single-command flamegraph profiling 🔥. Contribute to davidmarkclements/0x development by creating an account on GitHub.
    • Embed this notice
      Aral Balkan (aral@mastodon.ar.al)'s status on Wednesday, 05-Jul-2023 18:45:12 JST Aral Balkan Aral Balkan
      in reply to
      • Fedor Indutny

      Right, well, whatever the regression is, it doesn’t exist in Node 20.3.1.

      To whit, the time it takes to run my SNICallback:

      Node 12.16.2: ~10ms
      Node 18.16.1: ~4,000ms
      Node 20.3.1: ~10ms

      So there’s been a *massive* regression in performance in something in Node 18 (LTS) – buffers/strings? – that appears to be fixed in Node 20 (but not backported) that’s affecting the ocsp module.

      CC @indutny – if you get a chance, could you possibly let the right folks at Node core know about this? Thanks :)

      In conversation Wednesday, 05-Jul-2023 18:45:12 JST permalink

      Attachments


      1. Domain not in remote thumbnail source whitelist: d1lr4y73neawid.cloudfront.net
        module.cc - Domain Name For Sale | Dan.com
        from @undeveloped
        I found a great domain name for sale on Dan.com. Check it out!
    • Embed this notice
      Aral Balkan (aral@mastodon.ar.al)'s status on Wednesday, 05-Jul-2023 18:49:10 JST Aral Balkan Aral Balkan
      in reply to
      • Fedor Indutny

      @indutny PS. Profiling the ocsp.request.generate() function between versions should reproduce the performance regresssion in Node 18.

      In conversation Wednesday, 05-Jul-2023 18:49:10 JST permalink
    • Embed this notice
      Aral Balkan (aral@mastodon.ar.al)'s status on Wednesday, 05-Jul-2023 18:59:20 JST Aral Balkan Aral Balkan
      in reply to
      • Eric the Cerise

      @ErictheCerise Hey Eric, I’ll be updating Kitten to use Node 20.3.1 this week. You won’t notice any performance difference in development, this only impacts deployment.

      PS. Kitten uses its own Node runtime that it downloads during installation so the version of Node you have installed as your system default is irrelevant (so you don’t have to change that) :)

      In conversation Wednesday, 05-Jul-2023 18:59:20 JST permalink

      Attachments


    • Embed this notice
      Eric the Cerise (ericthecerise@kolektiva.social)'s status on Wednesday, 05-Jul-2023 18:59:21 JST Eric the Cerise Eric the Cerise
      in reply to
      • Fedor Indutny

      @aral

      Just grabbed a copy of kitten 2 days ago, running on—you guessed it—Node 18 LTS.

      @indutny

      In conversation Wednesday, 05-Jul-2023 18:59:21 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.