当前位置: 首页 > news >正文

呼和浩特网络公司林哥seo

呼和浩特网络公司,林哥seo,毕业答辩问题怎么做的这个网站,地产网站建设大数据量导致曲线绘制卡顿问题 这里提供一个思路在跟踪源码中发现底层卡顿在vector的resize() 此处扩容中 所以尽量使用下面的接口 /*! \overloadAdds the provided data point as \a key and \a value to the current data.Alternatively, you can also access and modify t…

大数据量导致曲线绘制卡顿问题
这里提供一个思路在跟踪源码中发现底层卡顿在vector的resize() 此处扩容中

所以尽量使用下面的接口

/*! \overloadAdds the provided data point as \a key and \a value to the current data.Alternatively, you can also access and modify the data directly via the \ref data method, whichreturns a pointer to the internal data container.
*/
void QCPGraph::addData(double key, double value)
{mDataContainer->add(QCPGraphData(key, value));
}

而不是使用addData这个接口,还有setData这个接口

/*! \overloadAdds the provided points in \a keys and \a values to the current data. The provided vectorsshould have equal length. Else, the number of added points will be the size of the smallestvector.If you can guarantee that the passed data points are sorted by \a keys in ascending order, youcan set \a alreadySorted to true, to improve performance by saving a sorting run.Alternatively, you can also access and modify the data directly via the \ref data method, whichreturns a pointer to the internal data container.
*/
void QCPGraph::addData(const QVector<double> &keys, const QVector<double> &values, bool alreadySorted)
{if (keys.size() != values.size())qDebug() << Q_FUNC_INFO << "keys and values have different sizes:" << keys.size() << values.size();const int n = qMin(keys.size(), values.size());QVector<QCPGraphData> tempData(n);QVector<QCPGraphData>::iterator it = tempData.begin();const QVector<QCPGraphData>::iterator itEnd = tempData.end();int i = 0;while (it != itEnd){it->key = keys[i];it->value = values[i];++it;++i;}mDataContainer->add(tempData, alreadySorted); // don't modify tempData beyond this to prevent copy on write
}
http://www.tj-hxxt.cn/news/1265.html

相关文章:

  • 在线制作logo网站网站关键词优化排名
  • wordpress链接自定义后文章打不开百度seo优化是什么
  • 外星人建设的网站网络运营策划
  • 西宁做网站的好公司百度关键词排名原理
  • 网站首页怎么做营业执照链接百度如何添加店铺位置信息
  • 私彩网站怎么做专门做推广的软文
  • 哪个网站能看到学做标书交换友情链接的注意事项
  • b2c网站建设杭州网站提升排名
  • 短租网站那家做的好处seo推广要多少钱
  • 设计配色网站网络安全培训机构排名
  • 易站通这个网站怎么做快速网站
  • 杭州网站建设派迪网络5118站长工具箱
  • excel表如何做网站连接百度检索入口
  • 情侣做记录网站源码企业网站建设模板
  • 上海网站建设基础东莞seo优化排名
  • x网站免费模板免费下载网页推广怎么做的
  • 公司注册流程2020seo在线外链
  • 用html做家谱网站代码中国网站建设公司前十名
  • 帝国cms这么做网站运营网站
  • 哪些网上订餐的网站做的好好的seo网站
  • 制作网站费用seo课程培训入门
  • 珠海市建设局官方网站品牌策划方案范文
  • 网站引导页动态效果怎么做的外链发布工具
  • 做网站徐州营销型网站开发公司
  • 青岛靠谱的做网站公司建网站专业
  • 2020电商网站排行榜上海推广网站
  • 自己做赌博网站百度首页百度
  • 高唐网页定制seo技术分享博客
  • 旅游网站排行榜前十名官网百度投诉电话24小时
  • 苏州网站开发公司鹅鹅鹅优化排名工具