nlfiedler / bdsort Goto Github PK
View Code? Open in Web Editor NEWBurst-Distribution Sort in C by David B. Ring
License: BSD 3-Clause "New" or "Revised" License
Burst-Distribution Sort in C by David B. Ring
License: BSD 3-Clause "New" or "Revised" License
In particular, compare Doug Lea's memory allocator
(http://g.oswego.edu/dl/html/malloc.html) to see if it can improve runtime
performance.
Original issue reported on code.google.com by [email protected]
on 24 Feb 2011 at 3:07
There are a set of macros defined in bdsort.h that relate to memory allocation
(e.g. SMALLOC, SCALLOC, FREE). These perform the usual memory allocation and
free function calls, in addition to updating global variables to track memory
usage. These should all be replaced with similar functions that have a static
struct for keeping track of memory usage. In other words, get rid of some of
the global variables and let the compiler decide if the functions should be
inlined or not.
Original issue reported on code.google.com by [email protected]
on 13 Feb 2011 at 2:59
In main.c there are a number of hard-coded file system paths and file names
that need to be parameterized.
Original issue reported on code.google.com by [email protected]
on 13 Feb 2011 at 3:31
Since we're compiling with C99 support, it's time to replace the uses of
strtok() with strsep(), which handles empty tokens (i.e. two consecutive
separators).
Original issue reported on code.google.com by [email protected]
on 13 Feb 2011 at 12:26
When compiling the code with default warnings enabled there are a bunch of
warnings issued for the bdsort code. Should try to correct as many of these as
possible.
And then turn on more warnings with -Wall or -Wextra.
Original issue reported on code.google.com by [email protected]
on 8 Feb 2011 at 3:11
C is fine for embedded systems and OS kernels. Everything else should be
written using a modern language with type safety and automatic memory safety.
Rust is the obvious choice here.
Original issue reported on code.google.com by [email protected]
on 12 Mar 2015 at 4:56
It should be possible to set up something similar to unit tests for C code,
which would be a good addition to the bdsort code base.
Original issue reported on code.google.com by [email protected]
on 4 Feb 2011 at 5:58
The bdsort code base needs more comments and a general reformatting of the code
to improve readability.
Original issue reported on code.google.com by [email protected]
on 4 Feb 2011 at 5:59
David was using XCode but instead it seems better to use a makefile so the code
can be compiled on the command line.
Original issue reported on code.google.com by [email protected]
on 4 Feb 2011 at 5:53
There are a large number of global variables in the bdsort code. Should try to
make as many of them not global as possible.
Original issue reported on code.google.com by [email protected]
on 8 Feb 2011 at 2:47
Presently all of the command line arguments processed by main.c are cryptically
named (e.g. sc, ls, oi). As such, there's no telling what they mean. All of
them need to be renamed to something at least somewhat self descriptive (e.g.
rename "oi" to "orderin").
Original issue reported on code.google.com by [email protected]
on 13 Feb 2011 at 3:18
Most of the code lacks explanatory comments, but David has supplied many
helpful descriptions that should live within the code itself.
Original issue reported on code.google.com by [email protected]
on 4 Feb 2011 at 5:55
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.