⚠ Forum Archived — The THSCC forums were discontinued (last post: 2024-05-18). This read-only archive preserves club history. Visit thscc.com →  |  Search this archive with Google: site:forums.thscc.com your search terms

THSCC Forums

Tarheel Sports Car Club Forums
It is currently Tue Apr 07, 2026 10:08 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject: Re: Autocross Instant Results for smartphones
PostPosted: Thu May 10, 2012 9:05 pm 
Offline

Joined: Tue Dec 18, 2007 1:41 pm
Posts: 254
Location: Cary, NC
I heard from Zach that he found a setting in AXware to save the results file automatically every X runs, so hopefully that will take care of the repetitive Ctrl+S that I've been asking T&S workers to do. Maybe he can chime in on that. Thanks Zach!

I've also been working on improving the way driver and run data is stored and retrieved. The current storage reads a file saved by AXware (which is in a format that's a hassle to read; some lucky souls may have heard me bitching about underscore-delimited key-value pairs) and duplicates most of the data into a format which isn't a hassle to read. In order to read the data out of the AXware file, I had to write some really custom code (AxIr_Parser_StateFileLine for the curious) that I thought would cause a big performance hit, since it's kind of convoluted and its methods would be called thousands of times whenever it's needed. So I didn't want to have to hit it on every page load. I thought, "surely just reading records out of a database will be way faster than this mess".

When you visited the app for the first time since T&S saved the file, you may have noticed it took a long time to load, and then was a lot more responsive when you started clicking links. I hadn't profiled that code to find out where that performance hit actually was, assuming it was due to reading the state file. It turns out it comes from writing out the database instead; time spent in AxIr_Parser_StateFile line is minuscule by comparison. It also turns out that the file I originally looked at as a hassle to read is no longer a such a pain when I use the StateFileLine class to deal with it. And I found a way to improve StateFileLine's performance by about 30%^H^H^H45%.

Based on some preliminary testing, I think I can eliminate almost all of the database writes that contribute to that slowdown once every few minutes, keep all the records absolutely up to date (without relying on the auto-save every X runs feature), and pay essentially no performance penalty in terms of page load time.

Oh yeah this is in the autocross forum. Time to go rewrite a pile of code why??? Because race car

_________________
2017 THSCC Autocross Chief of Timing and Scoring

03 Nissan Altima
02 Honda S2000


Last edited by Carlton Whitehead on Thu May 10, 2012 9:40 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Autocross Instant Results for smartphones
PostPosted: Thu May 10, 2012 9:21 pm 
Offline
User avatar

Joined: Wed Mar 04, 2009 9:14 pm
Posts: 2028
Location: Raleigh, NC
You know, I was thinking the same thing myself...uh, yeah....that's right, I was..... :D

_________________
Steve Carter
1972 Datsun 240Z-- resto pics at http://picasaweb.google.com/srcartermd
2007 GPW Honda S2000-- STR 86


Top
 Profile  
 
 Post subject: Re: Autocross Instant Results for smartphones
PostPosted: Fri May 11, 2012 11:27 am 
Offline
User avatar

Joined: Tue Feb 17, 2009 3:38 pm
Posts: 691
Location: Durham, NC
Carlton Whitehead wrote:
I heard from Zach that he found a setting in AXware to save the results file automatically every X runs, so hopefully that will take care of the repetitive Ctrl+S that I've been asking T&S workers to do. Maybe he can chime in on that. Thanks Zach!

Yes, I've set this to every 5 runs. This means after every 5 runs completed, AXware will save the event. If this isn't needed for AXir, we could probably increase this to every 10 or 20 runs. So if you make AXir not rely on saving, let me know.

_________________
2015-2017 President
2014 Track VP
2013 Autox VP

2002 Subaru WRX [dd]
2002 Honda S2000 STR #3 (retired...for now)
1992 Acura Integra ChumpCar #118 (retired)
2004 Toyota 4Runner V8

http://beastmoderacing.com


Top
 Profile  
 
 Post subject: Re: Autocross Instant Results for smartphones
PostPosted: Fri May 11, 2012 10:54 pm 
Offline
Republican
User avatar

Joined: Fri Jul 09, 2004 10:25 pm
Posts: 4356
Location: MWI/MUI Kubota FTW
oh Lordy, Lordy, Lordy chile i just finished a readin this thread and i cants believe what is a goin on up in here.............

milliseconds; impressive work, but holy schnitzle fahrts, i do not get it.

_________________
BenchWarmer Motorsports

another one of those damn LeMons heads

just another Chump :)

we are an Autocross Club Dammit............


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group