Re: C vs C++

Jon Paris <[email protected]>
Newsgroups gmane.comp.lang.as400.c
Message-ID <[email protected]>
It occurs to me that there may be one way of using “SQL” - or at least the underlying microcode functions - without changing all the logic. Just change the program to read a logical that converts the packed values to a more efficient format. If there are no decimals then binary is an option, otherwise float or Zoned. No idea how much difference it would make but it might be worth a try since the logical is quick and easy to build.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Feb 18, 2015, at 4:39 AM, Jevgeni Astanovski <[email protected]> wrote:

>> 
>> 
>>  With so few specifics of the scenario, the following may be way off the
>> mark, but as a possibility:
>> 
>>  Perhaps the /calculations with packed decimal/ over data that is
>> apparently /record data/ of /some tables/ could be performed by the SQL?
>> 
>> --
>> Regards, Chuck
>> --
> Chuck,
> 
> As I wrote, I have a working functionality written on C. It works fine and fast.
> Definitely C++ plus SQL will not be faster as there is a significant
> amount of optimization in the current code.
> SQL would do nothing more but introduce another language.
> For the same price I could (in theory) consolidate all packed decimal
> calculations in one module, compile it with C compiler and then bind
> together with C++ main. But in my particular case it has absolutely no
> sense :-)
> 
> Jevgeni.
> -- 
> This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list
> To post a message email: C400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/c400-l
> or email: C400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/c400-l.
> 

-- 
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list
To post a message email: C400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/c400-l.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.