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
    Alex Gleason (alex@gleasonator.com)'s status on Friday, 06-Oct-2023 10:41:32 JST Alex Gleason Alex Gleason
    Yess, finally got remote profiling working so I can figure out why my shit is so fucked. I am really using the Chrome inspector to profile my Deno backend code over an SSH tunnel.
    In conversation Friday, 06-Oct-2023 10:41:32 JST from gleasonator.com permalink

    Attachments


    1. https://media.gleasonator.com/3848164335fc3edbb0a0752ef88bf93d28686a04ae92e5aedaa5af58c632f039.png
    • Sexy Moon likes this.
    • Embed this notice
      Alex Gleason (alex@gleasonator.com)'s status on Friday, 06-Oct-2023 10:43:44 JST Alex Gleason Alex Gleason
      in reply to
      Well, there's the problem. 4 seconds for a single tick.
      In conversation Friday, 06-Oct-2023 10:43:44 JST permalink

      Attachments


      1. https://media.gleasonator.com/db66a5559b0b60d691f152bdbd8009b9e253b0514c91cbee9939d580b46ab957.png
    • Embed this notice
      Alex Gleason (alex@gleasonator.com)'s status on Friday, 06-Oct-2023 10:44:33 JST Alex Gleason Alex Gleason
      in reply to
      Shit man, maybe the database actually is the bottleneck 🥲
      In conversation Friday, 06-Oct-2023 10:44:33 JST permalink
    • Embed this notice
      Alex Gleason (alex@gleasonator.com)'s status on Friday, 06-Oct-2023 10:51:59 JST Alex Gleason Alex Gleason
      in reply to
      Okay, I think I understand what's happening. I render a page of 20 statuses. For each status I query the author as a separate query. This results in 20 additional queries. I need to make my views pure functions, query all the data up-front and pass them in.

      God I love this. So glad I finally got this set up.
      In conversation Friday, 06-Oct-2023 10:51:59 JST permalink

      Attachments


      1. https://media.gleasonator.com/ac3e035d87584a08e8b4e9b3bca46e07c9aec2f821d7e0cc1fa09b0b889ac6d3.png
      Sexy Moon likes this.
    • Embed this notice
      Alex Gleason (alex@gleasonator.com)'s status on Friday, 06-Oct-2023 10:52:35 JST Alex Gleason Alex Gleason
      in reply to
      It wouldn't hurt to also put SQLite into a Web Worker.
      In conversation Friday, 06-Oct-2023 10:52:35 JST permalink
    • Embed this notice
      Sexy Moon (moon@shitposter.club)'s status on Friday, 06-Oct-2023 10:52:48 JST Sexy Moon Sexy Moon
      in reply to
      @alex its cool to see somebody actually using a debugger
      In conversation Friday, 06-Oct-2023 10:52:48 JST permalink
    • Embed this notice
      Alex Gleason (alex@gleasonator.com)'s status on Friday, 06-Oct-2023 11:15:53 JST Alex Gleason Alex Gleason
      in reply to
      • Sal Rahman
      @manlycoffee Yes, this is Ditto. I intentionally didn't optimize it when I built it because I believe it's better to see it struggle and fix it than to do premature optimizations. But it took me a while to figure out the dev tools so I've been wondering. Now that I have this I can fix it in an hour.
      In conversation Friday, 06-Oct-2023 11:15:53 JST permalink
    • Embed this notice
      Sal Rahman (manlycoffee@techhub.social)'s status on Friday, 06-Oct-2023 11:15:54 JST Sal Rahman Sal Rahman
      in reply to

      @alex curious: are the 20 queries happening on the backend, or is the front-end sending some HTTP request to the front-end?

      In conversation Friday, 06-Oct-2023 11:15:54 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.