https://travisdowns.github.io/blog/2019/08/26/vector-inc.html
为什么vector<uint8_t>每个元素++比vector<uint32_t> 慢
(unsigned char 和 char 可变长)
void vector8_inc(std::vector<uint8_t>& v) {
for (size_t i = 0; i < v.size(); i++) {
v[i]++;
}| const HABITICA_TOKEN = "token"; | |
| const HABITICA_ID = "id"; | |
| function syncToHabbitica() { | |
| const habTaskURL = "https://habitica.com/api/v3/tasks/"; | |
| const today = new Date(); | |
| const agenda = CalendarApp.getDefaultCalendar() | |
| // const agenda = CalendarApp.getCalendarsByName(CALENDAR_NAME)[0]; | |
| // const events = agenda.getEventsForDay(today); |
| <svg id="svg" class="svg" viewBox="0 0 300 300" preserveAspectRatio="xMidYMid meet"> | |
| <g id="viewport"> | |
| <rect class="svg-background" x="0" y="0" width="300" height="300" /> | |
| <g transform="translate(86.08, 11.6)"> | |
| <path fill="#010101" d="M117.933,113.177c-0.086,0.211-0.172,0.392-0.246,0.528l0.023,0.074l0.074-0.02 | |
| c0.078-0.146,0.16-0.325,0.25-0.54l-0.031-0.07L117.933,113.177z M118.523,111.541c-0.098,0.293-0.191,0.571-0.281,0.825 | |
| l0.035,0.066l0.066-0.031c0.094-0.254,0.188-0.532,0.282-0.825l-0.036-0.07L118.523,111.541z M120.438,104.842 | |
| c-0.071,0.258-0.146,0.544-0.224,0.841l0.039,0.066l0.067-0.039c0.078-0.297,0.152-0.579,0.219-0.841l-0.039-0.066L120.438,104.842z | |
| M119.04,109.878c-0.086,0.285-0.168,0.563-0.254,0.833l0.035,0.07l0.07-0.039c0.082-0.27,0.168-0.547,0.254-0.833l-0.039-0.066 | |
| L119.04,109.878z M119.987,106.524c-0.074,0.273-0.148,0.556-0.231,0.841l0.04,0.066l0.066-0.039 |
https://travisdowns.github.io/blog/2019/08/26/vector-inc.html
为什么vector<uint8_t>每个元素++比vector<uint32_t> 慢
(unsigned char 和 char 可变长)
void vector8_inc(std::vector<uint8_t>& v) {
for (size_t i = 0; i < v.size(); i++) {
v[i]++;
}| --- platforms/android/build.gradle 2019-03-08 15:01:51.802772195 +0800 | |
| +++ platforms-old/android/build.gradle 2019-03-07 18:25:48.656770908 +0800 | |
| @@ -21,7 +21,7 @@ | |
| buildscript { | |
| repositories { | |
| maven { | |
| - url "https://maven.google.com" | |
| + url "https://dl.google.com/dl/android/maven2/" | |
| } | |
| jcenter() |
| scriptencoding utf-8 | |
| " Title: Vimrc for windows and linux | |
| " Maintainer: Yeoman Zhuang <[email protected]> | |
| " Last Modified: 2018-07-08 23:03 +0800 | |
| " Startup {{{ | |
| if has('autocmd') | |
| " Remove ALL autocommand for the current group | |
| au! | |
| endif |
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Copyright © 2018 Yongwen Zhuang <[email protected]> | |
| # | |
| # Distributed under terms of the MIT license. | |
| """ | |
| Byr | |
| 自动从bt.byr.cn上下载免费种子文件,保存到指定位置 |
| cloud.mickir.me:443 { | |
| tls /etc/letsencrypt/live/cloud.mickir.me/fullchain.pem /etc/letsencrypt/live/cloud.mickir.me/privkey.pem | |
| timeouts none | |
| root /usr/share/webapps/nextcloud | |
| log /home/mickir/caddy/access.log | |
| errors /home/mickir/caddy/access.log | |
| fastcgi / /run/php-fpm/php-fpm.sock php { |
| %% 读取图片 | |
| img = imread('船.bmp'); | |
| %% 全局阈值二值化 | |
| bw = img>65; | |
| figure; | |
| imshow(bw); | |
| %% 横向投影 | |
| ys = sum(bw,2); | |
| figure; | |
| plot(ys); |
| [Rainmeter] | |
| BackgroundMode=1 | |
| AppVersion=14000 | |
| [Metadata] | |
| Name= | |
| Author= | |
| Information= | |
| License= | |
| Version= |
| #ds-reset a.ds-user-name[data-user-id='id']:after { | |
| content: "魔法笔记的记录者"; | |
| margin-left: 6px; | |
| font-size: 12px; | |
| color: #13BF20; | |
| background: rgba(255, 255, 255, .35); | |
| border-radius: 4px; | |
| padding: 0 3px; | |
| } | |
| #ds-thread #ds-reset li.ds-post-placeholder { |