Tue, 04 Oct 2022 19:25:07 +0200
fix over-optimization of strstr
1. it's actually less performant to frequently read bytes
from an array instead of using the native word length
2. the SBO buffer should be local and not static to allow
multi-threading usage
390 | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html xmlns="http://www.w3.org/1999/xhtml"> | |
3 | <head> | |
4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> | |
5 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> | |
6 | <meta name="generator" content="Doxygen 1.8.13"/> | |
7 | <meta name="viewport" content="width=device-width, initial-scale=1"/> | |
8 | <title>ucx: UcxMapKey Struct Reference</title> | |
9 | <link href="tabs.css" rel="stylesheet" type="text/css"/> | |
10 | <script type="text/javascript" src="jquery.js"></script> | |
11 | <script type="text/javascript" src="dynsections.js"></script> | |
12 | <link href="search/search.css" rel="stylesheet" type="text/css"/> | |
13 | <script type="text/javascript" src="search/searchdata.js"></script> | |
14 | <script type="text/javascript" src="search/search.js"></script> | |
15 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> | |
16 | </head> | |
17 | <body> | |
18 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> | |
19 | <div id="titlearea"> | |
20 | <table cellspacing="0" cellpadding="0"> | |
21 | <tbody> | |
22 | <tr style="height: 56px;"> | |
23 | <td id="projectlogo"><img alt="Logo" src="uaplogo.png"/></td> | |
24 | <td id="projectalign" style="padding-left: 0.5em;"> | |
25 | <div id="projectname">ucx | |
26 | </div> | |
27 | <div id="projectbrief">UAP Common Extensions</div> | |
28 | </td> | |
29 | </tr> | |
30 | </tbody> | |
31 | </table> | |
32 | </div> | |
33 | <!-- end header part --> | |
34 | <!-- Generated by Doxygen 1.8.13 --> | |
35 | <script type="text/javascript"> | |
36 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); | |
37 | </script> | |
38 | <script type="text/javascript" src="menudata.js"></script> | |
39 | <script type="text/javascript" src="menu.js"></script> | |
40 | <script type="text/javascript"> | |
41 | $(function() { | |
42 | initMenu('',true,false,'search.php','Search'); | |
43 | $(document).ready(function() { init_search(); }); | |
44 | }); | |
45 | </script> | |
46 | <div id="main-nav"></div> | |
47 | <!-- window showing the filter options --> | |
48 | <div id="MSearchSelectWindow" | |
49 | onmouseover="return searchBox.OnSearchSelectShow()" | |
50 | onmouseout="return searchBox.OnSearchSelectHide()" | |
51 | onkeydown="return searchBox.OnSearchSelectKey(event)"> | |
52 | </div> | |
53 | ||
54 | <!-- iframe showing the search results (closed by default) --> | |
55 | <div id="MSearchResultsWindow"> | |
56 | <iframe src="javascript:void(0)" frameborder="0" | |
57 | name="MSearchResults" id="MSearchResults"> | |
58 | </iframe> | |
59 | </div> | |
60 | ||
61 | </div><!-- top --> | |
62 | <div class="header"> | |
63 | <div class="summary"> | |
64 | <a href="#pub-attribs">Data Fields</a> </div> | |
65 | <div class="headertitle"> | |
66 | <div class="title">UcxMapKey Struct Reference</div> </div> | |
67 | </div><!--header--> | |
68 | <div class="contents"> | |
69 | ||
70 | <p>Internal structure for a key of a <a class="el" href="structUcxMap.html" title="Structure for the UCX map. ">UcxMap</a>. | |
71 | <a href="structUcxMapKey.html#details">More...</a></p> | |
72 | ||
73 | <p><code>#include <<a class="el" href="map_8h_source.html">map.h</a>></code></p> | |
74 | <table class="memberdecls"> | |
75 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a> | |
76 | Data Fields</h2></td></tr> | |
77 | <tr class="memitem:ab71d1841e4f538628c00f782267fb6d5"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="structUcxMapKey.html#ab71d1841e4f538628c00f782267fb6d5">data</a></td></tr> | |
78 | <tr class="memdesc:ab71d1841e4f538628c00f782267fb6d5"><td class="mdescLeft"> </td><td class="mdescRight">The key data. <a href="#ab71d1841e4f538628c00f782267fb6d5">More...</a><br /></td></tr> | |
79 | <tr class="separator:ab71d1841e4f538628c00f782267fb6d5"><td class="memSeparator" colspan="2"> </td></tr> | |
80 | <tr class="memitem:a504d46caa45c79cd87ff8cd835654270"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structUcxMapKey.html#a504d46caa45c79cd87ff8cd835654270">len</a></td></tr> | |
81 | <tr class="memdesc:a504d46caa45c79cd87ff8cd835654270"><td class="mdescLeft"> </td><td class="mdescRight">The length of the key data. <a href="#a504d46caa45c79cd87ff8cd835654270">More...</a><br /></td></tr> | |
82 | <tr class="separator:a504d46caa45c79cd87ff8cd835654270"><td class="memSeparator" colspan="2"> </td></tr> | |
83 | <tr class="memitem:a34c1f8fec98174583944fffd30e7c913"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structUcxMapKey.html#a34c1f8fec98174583944fffd30e7c913">hash</a></td></tr> | |
84 | <tr class="memdesc:a34c1f8fec98174583944fffd30e7c913"><td class="mdescLeft"> </td><td class="mdescRight">The hash value of the key data. <a href="#a34c1f8fec98174583944fffd30e7c913">More...</a><br /></td></tr> | |
85 | <tr class="separator:a34c1f8fec98174583944fffd30e7c913"><td class="memSeparator" colspan="2"> </td></tr> | |
86 | </table> | |
87 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> | |
88 | <div class="textblock"><p>Internal structure for a key of a <a class="el" href="structUcxMap.html" title="Structure for the UCX map. ">UcxMap</a>. </p> | |
89 | </div><h2 class="groupheader">Field Documentation</h2> | |
90 | <a id="ab71d1841e4f538628c00f782267fb6d5"></a> | |
91 | <h2 class="memtitle"><span class="permalink"><a href="#ab71d1841e4f538628c00f782267fb6d5">◆ </a></span>data</h2> | |
92 | ||
93 | <div class="memitem"> | |
94 | <div class="memproto"> | |
95 | <table class="memname"> | |
96 | <tr> | |
97 | <td class="memname">void* UcxMapKey::data</td> | |
98 | </tr> | |
99 | </table> | |
100 | </div><div class="memdoc"> | |
101 | ||
102 | <p>The key data. </p> | |
103 | ||
104 | </div> | |
105 | </div> | |
106 | <a id="a34c1f8fec98174583944fffd30e7c913"></a> | |
107 | <h2 class="memtitle"><span class="permalink"><a href="#a34c1f8fec98174583944fffd30e7c913">◆ </a></span>hash</h2> | |
108 | ||
109 | <div class="memitem"> | |
110 | <div class="memproto"> | |
111 | <table class="memname"> | |
112 | <tr> | |
113 | <td class="memname">int UcxMapKey::hash</td> | |
114 | </tr> | |
115 | </table> | |
116 | </div><div class="memdoc"> | |
117 | ||
118 | <p>The hash value of the key data. </p> | |
119 | ||
120 | </div> | |
121 | </div> | |
122 | <a id="a504d46caa45c79cd87ff8cd835654270"></a> | |
123 | <h2 class="memtitle"><span class="permalink"><a href="#a504d46caa45c79cd87ff8cd835654270">◆ </a></span>len</h2> | |
124 | ||
125 | <div class="memitem"> | |
126 | <div class="memproto"> | |
127 | <table class="memname"> | |
128 | <tr> | |
129 | <td class="memname">size_t UcxMapKey::len</td> | |
130 | </tr> | |
131 | </table> | |
132 | </div><div class="memdoc"> | |
133 | ||
134 | <p>The length of the key data. </p> | |
135 | ||
136 | </div> | |
137 | </div> | |
138 | <hr/>The documentation for this struct was generated from the following file:<ul> | |
139 | <li>/home/mike/workspace/c/ucx/src/ucx/<a class="el" href="map_8h_source.html">map.h</a></li> | |
140 | </ul> | |
141 | </div><!-- contents --> | |
142 | <!-- start footer part --> | |
143 | <hr class="footer"/><address class="footer"><small> | |
144 | Generated on Thu Dec 19 2019 19:58:24 for ucx by  <a href="http://www.doxygen.org/index.html"> | |
145 | <img class="footer" src="doxygen.png" alt="doxygen"/> | |
146 | </a> 1.8.13 | |
147 | </small></address> | |
148 | </body> | |
149 | </html> |