我目前已经实现了一个类似于此处所示的垂直社交共享插件栏.
http://www.socialmediaexaminer.com/10-ways-to-add-facebook-functionality-to-your-website/
我使用了从Facebook为类似按钮生成的相同代码.我正在使用生成的HTML5代码.使用Chrome浏览器时,按下后退按钮时,Facebook like按钮会略微偏离其位置.我不确定是什么导致这种情况发生以及如何解决它.
使用Facebook类似按钮的代码:
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=504480219635937";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="https://developers.facebook.com/docs/plugins/" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
Run Code Online (Sandbox Code Playgroud) html5 facebook google-chrome facebook-like facebook-social-plugins
我正在使用C执行矩阵运算.我想知道什么是各种编译器优化标志,以提高双和int64数据的这些矩阵运算的执行速度 - 如乘法,反向等.我不是在寻找手动优化的代码,我只想使用编译器标志更快地生成本机代码,并了解有关这些标志的更多信息.
到目前为止我发现的标志改进了矩阵码.
-O3/O4
-funroll-loops
-ffast-math
Run Code Online (Sandbox Code Playgroud)