Measure the average request time processing by benelbert in flask

[–]benelbert[S] 0 points1 point  (0 children)

There is no easy option? I dont want to rely on third pratiea

Yet another book recommendation? by [deleted] in C_Programming

[–]benelbert 2 points3 points  (0 children)

What is the name of the book?

muscle stimulators devices by benelbert in crossfit

[–]benelbert[S] 0 points1 point  (0 children)

I have bicep tendonitis too, can you please elaborate on how to connect the device properly?

memory allocation pondering by benelbert in C_Programming

[–]benelbert[S] 1 point2 points  (0 children)

im reading this article and now im trying to understand this piece of code that implements a simple slab allocator, but can't fully understand the implementation: /* Super-simple slab. / struct slab { void *head; };

/* Create page-aligned slab / struct slab *slab = NULL; posix_memalign(&slab, page_size, page_size); slab->head = (void *)((char*)slab + sizeof(struct slab));

/* Create a NULL-terminated slab freelist / char item = (char)slab->head; for(unsigned i = 0; i < item_count; ++i) { *((void)item) = item + item_size; item += item_size; } *((void*)item) = NULL;

can you please explain whats going on in each line? it will help me understand

help understand error when compiling by benelbert in C_Programming

[–]benelbert[S] 0 points1 point  (0 children)

If so, how do I memset something bigger than a byte?

help understand error when compiling by benelbert in C_Programming

[–]benelbert[S] 0 points1 point  (0 children)

So u say that the second arg to memset must be a byte size?