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

网站建设 海豚弯万网一台虚拟主机做多个网站

网站建设 海豚弯,万网一台虚拟主机做多个网站,做心理咨询的网站,加强旅游网站建设大数据量导致曲线绘制卡顿问题 这里提供一个思路在跟踪源码中发现底层卡顿在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.yayakq.cn/news/320691/

相关文章:

  • 网站制作论坛wordpress清理网站缓存
  • 莱西网站制作联赛与超淘宝客网站做一种还是做好几种
  • 免费的网站模版广东网站建设公司报价表
  • 沧浪苏州网站建设顺企网属于什么网站
  • 做网站的怎样能翻页学编程用什么笔记本电脑比较好
  • 挂机宝做网站可以吗wordpress代码框
  • 做网站卖东西赚钱如何做棋牌网站
  • 如何查网站处罚过wordpress vip会员
  • 建立一个同城网站要怎么做网站建设与设计教程视频
  • 什么网站做旅行计划游戏小程序开发需要多少资本
  • 网站做301怎么做视觉中国设计网
  • 广州页面制作公司seo品牌推广方法
  • 服务器做网站有什么好处湖南住房城乡建设厅网站
  • 中国社区建设展示中心网站信息网络工程师
  • 郑州招聘网站推广温州网页设计哪家好
  • 门户网站首页模板广州网站建设网站优化推广
  • 网站优化如何做pc指数品牌营销推广方案怎么做
  • 广东建设部官方网站网站关闭了域名备案
  • 网站做支付功能搜索引擎优化与推广的产生及发展
  • 静态网站策划书展台设计搭建
  • 关于做网站公司周年大促销数据标签wordpress
  • 做游戏攻略网站赚钱吗wordpress 更新 ftp
  • 深圳北网站建设网站建设与维护的题目
  • 学校做好网站建设目的网站域名实名证明
  • 外贸网站营销方案手机网站公司
  • 一个专门做海鲜的网站合肥网站建设方案优化
  • 建设部网站如何下载国标规范设计公司怎么接业务
  • 网站管理后台制作微信小程序在哪里查找
  • 电子商务网站建设信息南阳网站seo
  • 网站推广平台怎么做怎样开网店卖别人的东西