<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki-ext.aps.anl.gov/epics/index.php?action=history&amp;feed=atom&amp;title=Conversion_Code_Clean-Up</id>
	<title>Conversion Code Clean-Up - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki-ext.aps.anl.gov/epics/index.php?action=history&amp;feed=atom&amp;title=Conversion_Code_Clean-Up"/>
	<link rel="alternate" type="text/html" href="https://wiki-ext.aps.anl.gov/epics/index.php?title=Conversion_Code_Clean-Up&amp;action=history"/>
	<updated>2026-06-05T08:05:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://wiki-ext.aps.anl.gov/epics/index.php?title=Conversion_Code_Clean-Up&amp;diff=2921&amp;oldid=prev</id>
		<title>RalphLange: First version of Conversion Code Clean-Up description</title>
		<link rel="alternate" type="text/html" href="https://wiki-ext.aps.anl.gov/epics/index.php?title=Conversion_Code_Clean-Up&amp;diff=2921&amp;oldid=prev"/>
		<updated>2010-10-18T16:25:30Z</updated>

		<summary type="html">&lt;p&gt;First version of Conversion Code Clean-Up description&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Conversion Code Clean-Up ==&lt;br /&gt;
&lt;br /&gt;
=== Current Situation ===&lt;br /&gt;
&lt;br /&gt;
There are two codes for conversion, a full version in '''db/dbConvert.c''' and a &amp;quot;fast&amp;quot; version in '''db/dbFastLinkConv.c'''.&lt;br /&gt;
&lt;br /&gt;
Both contain the full matrix of conversions as a large set of almost identical C functions.&lt;br /&gt;
&lt;br /&gt;
=== Possible Improvements ===&lt;br /&gt;
&lt;br /&gt;
Using templated functions in C++ would greatly reduce the source code, still allowing for source level optimization by providing explicit instantiations for simple cases (e.g. same type).&lt;br /&gt;
&lt;br /&gt;
The new functions could also be changed to not use dbAddr as parameter (explicitly name the parts needed from dbAddr instead), so they can be used for non-V3-record applications.&lt;br /&gt;
&lt;br /&gt;
The array interface could be improved:&lt;br /&gt;
 * Start/End/Increment parameters would allow extracting sub arrays&lt;br /&gt;
 * Chunked array storage could be supported&lt;br /&gt;
&lt;br /&gt;
=== Approach ===&lt;br /&gt;
&lt;br /&gt;
First step should be adding test code that verifies all conversions, and takes performance numbers. That way the existing code could be tested for both function and performance.&lt;br /&gt;
&lt;br /&gt;
Then, the new conversion routines should be implemented, with simple wrappers that map the existing (array of function pointer) interfaces to use the new code.&lt;br /&gt;
&lt;br /&gt;
The test code should be used to verify and spec the new implementation.&lt;/div&gt;</summary>
		<author><name>RalphLange</name></author>
	</entry>
</feed>