zigo101

Results 166 comments of zigo101

I also found this problem, but I haven't found this cause for this. I haven't changed the command line to call the `ebook-convert` for a long time. It is likely...

The example above the quoted text shows how to use the custom value cache pool. It is very simple, but it does show the whole mechanism. ```Go import "container/list" var...

I will add a generic version when Go 1.18 is released.

It is true for Go toolchain 1.17, the reason might be `for-range` loops are not inline-able before 1.18. For Go toolchain 1.18 beta 2, the benchmark results are similar if...

It looks there are some weirdness in the code inline module of the standard Go compiler v1.18. Here are the benchmark results for different compiler versions and whether or not...

The simplified benchmark code: ```Go package copycost import "testing" const N = 1024 func Sum_RangeSliceIdx_Inline(a []int) (r int) { for i := range a { r += a[i] } return...

I submitted an issue here: https://github.com/golang/go/issues/51028

@vitaly-zdanevich What is you phone device? On my Android phone, the code blocks can be dragged to view the initially invisible parts. Can them be dragged on your phone? And...

Could you elaborate more on how to optimize it? A PR is preferred if possible.

@Sina-Ghaderi Thanks for this suggestion. The PDF ebooks are generated from epub versions by using Calibre. https://github.com/go101/go101-ebooks I haven't found an option in Calibre to force each code block on...