On Fri, May 30, 2014 at 3:36 AM, Warren Young <war...@etr-usa.com> wrote:
> PowerPC does some strange things with char, too. You might have fixed > that in passing. > Very possibly. The bug was that i assumed (despite knowing better, deep down) that (char) is signed, but C does not specify its signedness. i had used (1, 0, -1) as yes/no/maybe logic in several places, and that resulted in (1, 0, 255) on the Pi (where char is unsigned). The bug luckily revealed itself (in other code) in such a way that it was obvious what was happening, but then i had to go clean up 3 other projects where i had done the same thing :/. As a comparison of runtime speeds, here's the results of the core sanity >> tests on my workstation >> > > How much work does this test do compared to normal user operations? Say, a > normal checkin, or a pull of the /tree URL from "fossil server"? > Excellent question: the timing i showed is "all of the sanity tests," which is almost (but not quite) at least one run of all of the basic features, including creating a checkin, extracting all files from the current version, and lots of other stuff which is, in practice, never run together in the same execution. i.e. it's doing a lot more than any single command does. > A Pi really isn't all that slow, in historical terms. It's only about 10 > years behind the times, in terms of raw horsepower. Raspbian comes with > Mathematica after all, and it runs reasonably well under X. i suspect (haven't checked) that a pain point for fossil/libfossil here is (or will be) memory usage. The Pi is hard-wired for 512MB and Fossil has linear memory costs (sometimes on the size of the largest file, sometimes on the combination of files and their sizes). For example, the sanity check creates a ZIP file from the current version. That happens all in memory, and extracting the versions of each file is a RAM-intensive operation. It's very possible (haven't checked) that the Pi is swapping like mad there. But it runs, and that's the main thing :). The Pi is not fast, but it's really, really, really quiet (no noise >> whatsoever). >> > > Yeah, plug the headphone port into a power amplifier and get back to me > about "no noise whatsoever." ;) > lol. Haven't tried that - i use my tablet for audio/video more often than not. > [2]: It costs less in winter where the heat produced reduces the heating > bill, but doubles in summer where every watt produced has to be removed by > the AC system. > i'm in southern Germany, and have yet to see a house here which has AC ;) (even most offices don't have it). My current laptop is basically enough to heat a whole room, and in fact it does save me heating costs (i use it to warm up pizza slices sometime!). Contrariwise, in summer it can get a bit too warm :/. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users