standup5x5 icon indicating copy to clipboard operation
standup5x5 copied to clipboard

Improve io performance by implementations the use of IO_uring

Open FCLC opened this issue 2 years ago • 1 comments

It may be possible to increase performance by using the io_uring asynchronous api within the program for the input read.

example of basic setup here: https://twitter.com/axboe/status/1576671920488972288/photo/1 man page here: https://man.archlinux.org/man/io_uring.7

FCLC avatar Oct 17 '22 16:10 FCLC

Reading the readme after watching Matt Parker's video I had a few questions and came to the repo to ask them, and I figure this issue about improving read in time is a good place for discussing it:

  1. Why store the words in a text file? Write a separate program to do your word list preprocessing into ints and store them in a binary file, reading that in.
  2. Improving even further, why store the file separately and read it in at run time? Embed the words directly in the binary. Generate your list of ints, copy them into the source, and store them in an array.

Bam, no more read in bottleneck. Is there some rule against this?

mas-4 avatar Oct 20 '22 14:10 mas-4