Faculty of Information Technology
Software Engineering Group

Opened 8 years ago

Last modified 8 years ago

#69 new todo

On Linux, use memcpy(), memset() and memchr()

Reported by: vranyj1 Owned by:
Priority: major Milestone:
Component: default Keywords:
Cc: Also affects CVS HEAD (eXept version): no

Description

...for those are usually twice as fast as hand-optimized C code. Not so on Windows (perhaps MS libc's implementation is not as good as GLIBC's). See results of bench-memchr.c and bench-memcpy.c

stx:stc commit 5ac5233bd4c4 enables them, but something then breaks (not usage of memchr(), though). The problem manifests itself in a funny way - some UI stylesheets are not properly initialized, code editor does not show some lines which appear when you scroll and so on. To check, try open settings dialog with some checkboxes.

Commit 5ac5233bd4c4 has been reverted (4d7bb8c70853)

Change History (1)

comment:1 Changed 8 years ago by vranyj1

I forgot to mention this has been observed on 64bit builds.
First thing is to check the compiler does not bark on bad/missing prototypes!

Note: See TracTickets for help on using tickets.