2026/03/07

Newest at the top

2026-03-07 11:48:33 +0100 <Guest89> I assume there is some structure in my code that exacerbates the problem but I can't really see where
2026-03-07 11:48:10 +0100 <Guest89> I've already been trying to use GHC.Compact but it doesn't seem to have affected runtimes at all
2026-03-07 11:47:48 +0100 <Guest89> I have some data that suggests that the data itself isn't fragmented but the program allocates about twice as much as it uses, which also seems excessive
2026-03-07 11:47:46 +0100 <haskellbridge> <loonycyborg> https://github.com/ezyang/compact <- this might help with excessive gc times
2026-03-07 11:46:33 +0100 <haskellbridge> <sm> yes, +RTS -s is useful
2026-03-07 11:46:16 +0100 <Guest89> it's verbose but I can navigate it at least?
2026-03-07 11:45:59 +0100 <Guest89> I've mostly relied on the metrics provided by different RTS options so far
2026-03-07 11:45:32 +0100 <Guest89> I'll be honest, I haven't figured out how to interact with packages like that yet; I've used stuff like eventlog2html but compiled as a separate executable
2026-03-07 11:45:29 +0100 <haskellbridge> <sm> and you're right, it's overallocating (garbage collection should be a small percentage of your run time)
2026-03-07 11:44:12 +0100 <haskellbridge> <sm> it will be hard to understand completely, but full of useful information. You can also process it with https://hackage.haskell.org/package/profiterole which makes it more readable.
2026-03-07 11:42:04 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 256 seconds)
2026-03-07 11:41:50 +0100 <haskellbridge> <sm> you must make a profiling build of your app, then run it with special flags
2026-03-07 11:41:21 +0100 <haskellbridge> <sm> hi Guest89 . It's not the easiest process, but it will be useful to generate a simple time and space profile - the profiling chapter in the GHC Users's Guide should tell how
2026-03-07 11:40:11 +0100 <Guest89> garbage collection takes 3 times as long as the code itself for example, which I think seems very excessive. I've been trying to play around with things like ghc-compact but it didn't seem to help things any
2026-03-07 11:39:41 +0100 <Guest89> written. would anyone be willing to help me figure things out?
2026-03-07 11:39:40 +0100 <Guest89> hello; I'm trying to profile an application that is rather performance sensitive and I'm hoping to reduce allocations as much as possible (this is for the purposes of a master's thesis I'm working on), but I'm having a little trouble isolating the hotspots in my code and understanding whether or not my code itself is overallocating as it is
2026-03-07 11:39:06 +0100Beowulf(florian@sleipnir.bandrate.org) (Quit: = "")
2026-03-07 11:37:05 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-03-07 11:36:19 +0100Guest89(~Guest89@185.45.21.144)
2026-03-07 11:29:48 +0100CiaoSen(~Jura@2a02:8071:64e1:da0:5a47:caff:fe78:33db) (Ping timeout: 264 seconds)
2026-03-07 11:26:34 +0100ChaiTRex(~ChaiTRex@user/chaitrex) ChaiTRex
2026-03-07 11:26:25 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 272 seconds)
2026-03-07 11:25:05 +0100ChaiTRex(~ChaiTRex@user/chaitrex) (Ping timeout: 258 seconds)
2026-03-07 11:23:59 +0100img(~img@user/img) img
2026-03-07 11:22:44 +0100img(~img@user/img) (Quit: ZNC 1.10.1 - https://znc.in)
2026-03-07 11:21:18 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-03-07 11:19:03 +0100arandombit(~arandombi@user/arandombit) (Remote host closed the connection)
2026-03-07 11:15:15 +0100YoungFrog(~youngfrog@39.129-180-91.adsl-dyn.isp.belgacom.be) youngfrog
2026-03-07 11:14:56 +0100YoungFrog(~youngfrog@2a02:a03f:ca07:f900:6149:6cda:888:c7a0) (Quit: ZNC 1.7.x-git-3-96481995 - https://znc.in)
2026-03-07 11:14:27 +0100merijn(~merijn@62.45.136.136) (Ping timeout: 244 seconds)
2026-03-07 11:10:00 +0100merijn(~merijn@62.45.136.136) merijn
2026-03-07 11:07:29 +0100Ranhir(~Ranhir@157.97.53.139) (Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/)
2026-03-07 11:04:23 +0100Lord_of_Life(~Lord@user/lord-of-life/x-2819915) Lord_of_Life
2026-03-07 11:00:00 +0100Lord_of_Life(~Lord@user/lord-of-life/x-2819915) (Excess Flood)
2026-03-07 10:59:07 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2026-03-07 10:54:06 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-03-07 10:43:14 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 248 seconds)
2026-03-07 10:41:35 +0100arandombit(~arandombi@user/arandombit) arandombit
2026-03-07 10:38:18 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-03-07 10:36:08 +0100aka_dude(~aka_dude@2a03:f80:30:f490::1)
2026-03-07 10:35:12 +0100aka_dude(~aka_dude@192.71.166.120) (Quit: Gateway shutdown)
2026-03-07 10:27:20 +0100czan(~czan@user/mange) czan
2026-03-07 10:27:16 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 265 seconds)
2026-03-07 10:25:51 +0100Goodbye_Vincent1(cyvahl@freakshells.net) Goodbye_Vincent
2026-03-07 10:24:50 +0100Goodbye_Vincent1(cyvahl@freakshells.net) (Quit: )
2026-03-07 10:23:39 +0100Vizious(~bes@user/Vizious) Vizious
2026-03-07 10:20:17 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-03-07 10:18:47 +0100humasect(~humasect@192.249.132.90) (Quit: Leaving...)
2026-03-07 10:15:07 +0100Vizious(~bes@user/Vizious) (Quit: WeeChat 4.6.3)
2026-03-07 10:12:17 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 265 seconds)