<div dir="ltr">if we can get 50%+ performance boost in some functions (such as sorting, or random generator), with minimal extra code? It's entirely possible to do it in C, but it'll be longer/harder to maintain. Unchanged code will keep the same speed.<div><br></div><div>We can stick to basic C++ features (templates, std::string, ...) to keep the C-like simplicity. C++11 would be best.<br><div><br></div><div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span><br><div dir="ltr" style="margin-left:0pt"><table style="border:none;border-collapse:collapse;width:602px"><colgroup><col width="*"><col width="*"></colgroup><tbody><tr style="height:0px"><td style="border-left:solid #f3f3f3 0px;border-right:solid #f3f3f3 0px;border-bottom:solid #f3f3f3 0px;border-top:solid #f3f3f3 0px;vertical-align:top;padding:7px 7px 7px 7px"><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><img src="https://lh6.googleusercontent.com/IJyoaP68AkF3BU3FlmFCX-EC0mBf7bG7a2i1k5DkNw0Cs9OA8ID3bAry0320i5cLqQF6hKHkhxkdZ1A8Ugi7gFp_tA7-tbnYjqHkKHPYsCZziS5Wpkuz9R1MBigVAq1moouwioho" width="156" height="103" style="border:none" alt="usth.jpg"></span></p></td><td style="border-left:solid #f3f3f3 0px;border-right:solid #f3f3f3 0px;border-bottom:solid #f3f3f3 0px;border-top:solid #f3f3f3 0px;vertical-align:top;padding:7px 7px 7px 7px"><p dir="ltr" style="line-height:1.7999999999999998;margin-top:0pt;margin-bottom:0pt"><font face="arial, helvetica, sans-serif"><span style="font-size:12px;color:rgb(23,54,93);font-weight:700;vertical-align:baseline;white-space:pre-wrap">Duc Le Huy </span><span style="font-size:12px;color:rgb(23,54,93);vertical-align:baseline;white-space:pre-wrap">(Mr.)</span></font></p><p dir="ltr" style="line-height:1.7999999999999998;margin-top:0pt;margin-bottom:0pt"><span style="font-size:12px;color:rgb(23,54,93);vertical-align:baseline;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">Undergraduate student</font></span></p><p dir="ltr" style="line-height:2.0842105263157893;margin-top:0pt;margin-bottom:0pt"><span style="font-size:12px;color:rgb(23,54,93);vertical-align:baseline;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">ICT Faculty</font></span></p><p dir="ltr" style="line-height:1.7999999999999998;margin-top:0pt;margin-bottom:0pt"><span style="font-size:12px;color:rgb(255,0,0);font-weight:700;vertical-align:baseline;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">University of Science & Technology of Hanoi</font></span></p><p dir="ltr" style="line-height:1.7999999999999998;margin-top:0pt;margin-bottom:0pt"><font face="arial, helvetica, sans-serif"><span style="font-size:12px;color:rgb(51,102,153);font-weight:700;vertical-align:baseline;white-space:pre-wrap">Phone number :</span><span style="font-size:12px;color:rgb(51,102,153);vertical-align:baseline;white-space:pre-wrap"> (+84) 918296356</span></font></p><p dir="ltr" style="line-height:1.3800027272727273;margin-top:0pt;margin-bottom:10pt"><span style="font-size:12px;color:rgb(51,102,153);font-weight:700;vertical-align:baseline;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">Email: <a href="mailto:lehuyduc3@gmail.com" target="_blank">lehuyduc3@gmail.com</a></font></span></p></td></tr></tbody></table></div></span></div></div></div></div></div></div></div></div></div>