Apologies for the following: It's mostly a rant, but any constructive 
suggestions would be *very* welcome...

Am I completely mad to be trying to develop a C++ CFX?

[Context: we run CF5 in production and are in the process of migrating to 
CF7MX., under Linux and Apache 1.3.33]

My motivation to explore this for the first time is performance problems with 
regexp code on one of our customer's site. Basically, the post-processing in 
cfscript takes an absurd amount of time (a quick hack of the same code in Perl 
was of the order of 20-30 times faster). I grabbed and installed PCRE and spent 
a fair chunk of  yesterday getting Philip Hazel's CFX interface to that going.

Today I spent recoding the time-critical part of my application logic in C++.

The resultant code installs in CF7MX, but causes an instant server crash in CF5 
on install. I pondered whether there might be some strange interaction between 
my CFX and the hacked CFX_PCRegEx.so, so removed that and reinstalled my code. 
Fine. Attempting reinstall of CFX_PCRegEx also crashed CF5 which was at least 
consistent. My code also crashed and burned - no surprise; time to start 
debugging. A couple of iterations in, I unloaded and reinstalled my CFX. It 
wouldn't install. Not only that, but I can't now get CFX_PCRegEx (untouched 
since yesterday) to install either, even with no other CFXs installed after a 
clean restart of CF5. I *know* it worked (I've still got the successful test 
run output open in a browser tab as I write this). Even a dummy CFX (empty 
ProcessTagRequest() and that's it) crashes the server on installation.

OK. Maybe I can just sidestep this for a while and debug under CF7MX. Problem 
here is that the latter doesn't just crash my session when my code fails, it 
takes the entire CF7MX server with it. Which takes several minutes to restart 
on our test server. <rhetorical>HTF am I supposed to debug code with a 5-minute 
turnaround with every change?</rhetorical>...

It's gone 9pm here now, and I'm giving up for today, but I've still got to find 
*some* resolution tomorrow. Any suggestions that maintain what few ragged 
remnants of my sanity still exist are welcome.

Pete Jordan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:10:5168
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/10
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:10
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.10
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to