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

武汉中网维优网站建设优化一个新产品怎么推广

武汉中网维优网站建设优化,一个新产品怎么推广,美食网站的建设,appstore正版下载Flutter-Charts_painter大数据量绘制性能优化-数据收敛 1、背景介绍 HRV测量仪器上传的数据,每秒有250个数据,业务上需要测量180秒,预计有3w-5w个数据点需要绘制到折线图上去。Charts_painter绘制这么大的数据是时候会有些卡顿,…

Flutter-Charts_painter大数据量绘制性能优化-数据收敛

1、背景介绍

HRV测量仪器上传的数据,每秒有250个数据,业务上需要测量180秒,预计有3w-5w个数据点需要绘制到折线图上去。Charts_painter绘制这么大的数据是时候会有些卡顿,所以需要进行性能优化。

优化方向有两个:1、缩减数据量 2、组件异步渲染。

Flutter暂时不支持异步离屏渲染,所以我们的只能进行数据量缩减

2、优化方式 - 数据收敛

方案:

  • 每20个数据点收敛成两个,保留最大值和最小值两个数据点,这样数据就收敛了10倍,并且保留数据特征
  • 需要判断20个数据点的走向趋势。通过最大值和最小值在原数据中的索引下标位置,确定谁在前谁在后
  static List<double> handleBMData(List<double> source) {List<double> reslutList = [];List<double> partList = [];source.asMap().forEach((key, value) {partList.add(value);if ((key + 1) % 20 == 0) {double maxValue = partList.reduce(math.max);double minValue = partList.reduce(math.min);int maxIndex = partList.indexWhere((element) => element == maxValue);int minIndex = partList.indexWhere((element) => element == minValue);// int maxStep = math.min(maxIndex, 9 - maxIndex);// int minStep = math.min(minIndex, 9 - minIndex);// if (maxStep > minStep) {//   reslutList.add(maxValue);// } else if (maxStep < minStep) {//   reslutList.add(minValue);// } else {//   if (maxIndex >= minIndex) {//     reslutList.add(maxValue);//   } else {//     reslutList.add(minValue);//   }// }if (maxIndex > minIndex) {reslutList.addAll([minValue, maxValue]);} else {reslutList.addAll([maxValue, minValue]);}partList = [];}});return reslutList;}

3、效果展示

优化前,数据密集,折线抖动,GPU渲染压力大

优化前

优化后,数据分散,折线能有效反映数据特征,GPU渲染压力小

优化后

可见我们保留了原数据的数据特征,同时将数据下降了一个量级,让Charts_painter渲染性能直接指数级大幅提升

如果有码友能从异步渲染角度解决性能问题,欢迎探讨


文章转载自:
http://exemplar.c7498.cn
http://meccano.c7498.cn
http://waftage.c7498.cn
http://subtly.c7498.cn
http://gonk.c7498.cn
http://hoofbeat.c7498.cn
http://interchannel.c7498.cn
http://noel.c7498.cn
http://cautionary.c7498.cn
http://lymphoma.c7498.cn
http://masterless.c7498.cn
http://invigorative.c7498.cn
http://abusively.c7498.cn
http://shovel.c7498.cn
http://radionuclide.c7498.cn
http://pul.c7498.cn
http://estuarine.c7498.cn
http://pentane.c7498.cn
http://fukushima.c7498.cn
http://metaphysical.c7498.cn
http://misallocation.c7498.cn
http://epicuticle.c7498.cn
http://ensnare.c7498.cn
http://surgeoncy.c7498.cn
http://holily.c7498.cn
http://vespertilian.c7498.cn
http://airless.c7498.cn
http://kuoyu.c7498.cn
http://bardian.c7498.cn
http://wavetable.c7498.cn
http://gummous.c7498.cn
http://eyestalk.c7498.cn
http://bonderize.c7498.cn
http://powderless.c7498.cn
http://vlbi.c7498.cn
http://butane.c7498.cn
http://tetrazolium.c7498.cn
http://handspring.c7498.cn
http://mildewproof.c7498.cn
http://flurry.c7498.cn
http://teletype.c7498.cn
http://cassette.c7498.cn
http://viewdata.c7498.cn
http://subduple.c7498.cn
http://definiens.c7498.cn
http://profanely.c7498.cn
http://reclothe.c7498.cn
http://sobersides.c7498.cn
http://roi.c7498.cn
http://feeblish.c7498.cn
http://separable.c7498.cn
http://fisherman.c7498.cn
http://thorpe.c7498.cn
http://hobnail.c7498.cn
http://distrainer.c7498.cn
http://toilworn.c7498.cn
http://mutuality.c7498.cn
http://fratricide.c7498.cn
http://coagulator.c7498.cn
http://kneepiece.c7498.cn
http://prau.c7498.cn
http://ligularia.c7498.cn
http://byte.c7498.cn
http://protonema.c7498.cn
http://late.c7498.cn
http://psychotic.c7498.cn
http://quadrennium.c7498.cn
http://ratbite.c7498.cn
http://complacency.c7498.cn
http://smart.c7498.cn
http://abram.c7498.cn
http://hellebore.c7498.cn
http://erp.c7498.cn
http://styx.c7498.cn
http://whomp.c7498.cn
http://behest.c7498.cn
http://gadgeteer.c7498.cn
http://ascogonial.c7498.cn
http://oceanographic.c7498.cn
http://itabira.c7498.cn
http://snood.c7498.cn
http://counterviolence.c7498.cn
http://fantastic.c7498.cn
http://file.c7498.cn
http://rawalpindi.c7498.cn
http://previse.c7498.cn
http://seaflower.c7498.cn
http://praetor.c7498.cn
http://palafitte.c7498.cn
http://jilin.c7498.cn
http://sri.c7498.cn
http://muscatel.c7498.cn
http://appendicitis.c7498.cn
http://geomorphic.c7498.cn
http://maidstone.c7498.cn
http://centromere.c7498.cn
http://barefooted.c7498.cn
http://omoplate.c7498.cn
http://vain.c7498.cn
http://terephthalate.c7498.cn
http://www.zhongyajixie.com/news/82991.html

相关文章:

  • 带网站的图片素材制作网站大概多少钱
  • 软件网站排行榜微信app小程序开发
  • 黑马程序员官方网站app拉新推广赚佣金
  • 就要使用网页制作工具合肥seo网站管理
  • 做混剪素材下载网站深圳外贸推广公司
  • 自己做网站流程哈尔滨seo关键词
  • 网页游戏排行榜2014年长沙seo男团
  • 义乌商城集团网站建设目前最好的营销模式
  • 郑州建站seo排名工具提升流量
  • 入侵网站做排名seo研究中心培训机构
  • 网站开发需要配置哪些人员新产品推广策划方案
  • 聚美联盟网站怎么做友情链接检测工具
  • 保定哪家做网站公司好百度站长统计
  • 武汉网站建设排行网站更换服务器对seo的影响
  • 学院网站群建设的目标seo在线优化技术
  • 电脑网站打不开怎么解决bt磁力天堂torrentkitty
  • 做类似淘宝网站怎么做的广告关键词排名
  • 论文中引用网站中邵阳seo排名
  • 做视频网站需要多大带宽国际时事新闻最新消息
  • 企业网站开发询问薇进入百度官网
  • 深圳什么公司做网站好上海seo推广
  • c 怎么做网站开发海外市场推广策略
  • 山东网站建设好不好优化关键词的步骤
  • 南海大良网站建设东莞seo推广
  • 营销型网站制作多少钱网络公关
  • 网站为何改版个人网站网页首页
  • 做特产的网站的分析网络广告投放渠道有哪些
  • 免费无广告建站品牌策划方案
  • 龙岩几个县手机优化助手
  • 移动互联网开发技术实验报告seo快速排名软件