[Splashy-devel] Splashy time. when time resurrects

Luis M Luis M <lemsx1@gmail.com>
Sat, 28 May 2005 03:57:21 -0400


just finished doing a major cleanup for the splashy C code. This is a
very good estimate of the number of lines that splashy itself needs to
work correctly:

$> cd /usr/src/splashy/local/trunk/src
# removes empty lines, comment blocks (vim style) and counts resulting line=
s
$> cat *.[ch] | egrep -v '^\s*/\*' | egrep -v '\s*\*' | egrep -v '^\s*$' | =
wc -l
671

this number went down from about ~ 1500 lines on previous days. a lot
of dead code was simply removed. there are some code commented out
because we might need to implement those functions later (especially
for cmd_*)

aside from code cleanups, I also completed testing the vcs* parser and
generalized it so that it can be used to match a given pattern on any
file.

in order to improve on speed, i'm using a regexec() call and
fread_unlocked(). I have not changed the sched priority of splashy
yet, but at this point i don't think is needed. splashy works as fast
as the hardware on which it runs permits.

enjoy.

On 5/27/05, Luis M <lemsx1@gmail.com> wrote:
> On 5/24/05, Vincenzo Ampolo <vincenzo.ampolo@gmail.com> wrote:
> > On Tue, 2005-05-24 at 12:40 -0400, Luis M wrote:
> > > take into account that the C implementation is somewhat more complete
> > >=20
<snip>

--=20
----)(-----=20
Luis M
System Administrator
Kiskeyix.org=20

"We think basically you watch television to turn your brain off, and
you work on your computer when you want to turn your brain on" --
Steve Jobs in an interview for MacWorld Magazine 2004-Feb

No .doc: http://www.fsf.org/philosophy/no-word-attachments.es.html