create account

Making SteemPlus faster! by stoodkev

View this thread on: hive.blogpeakd.comecency.com
· @stoodkev ·
$81.58
Making SteemPlus faster!
![image.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1514586802/af4vyvmin522u2lr7dza.png)

Until now, I've been busy writing the new SteemPlus as they were coming, one by one, as if they were separate programs. It caused a lot of redundancies in the code, and I have been wanting to fix that for a while but I always had new features going on.

With the full integration with SteemConnect V2 coming soon, I decided that it was time to organize my code a little bit more. The code in [this commit](https://github.com/stoodkev/SteemPlus/commit/fc9b8ccc55f390209fdb1b54c16ca80fe47825fa) just does that, organizing the code such as data needed by more than one feature is fetched just once and passed to all of those.

As we add more and more features to SteemPlus, this will allow to avoid redundancies and make the whole process faster by using a system of chrome extension Messages to communicate between a main script and each feature.

It also allows to regroup all the old listeners together for the different features.

In summary, there is not much to write here since there is no new feature added to the SteemPlus extension but it is one of my biggest updates on it so far as it will both make it faster and make it work in a fashion that will allow SteemConnect work flow.



<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@stoodkev/making-steemplus-faster">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 8 others
properties (23)
authorstoodkev
permlinkmaking-steemplus-faster
categoryutopian-io
json_metadata"{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":105204650,"name":"SteemPlus","full_name":"stoodkev/SteemPlus","owner":{"login":"stoodkev","id":32375533,"avatar_url":"https://avatars2.githubusercontent.com/u/32375533?v=4","gravatar_id":"","url":"https://api.github.com/users/stoodkev","html_url":"https://github.com/stoodkev","followers_url":"https://api.github.com/users/stoodkev/followers","following_url":"https://api.github.com/users/stoodkev/following{/other_user}","gists_url":"https://api.github.com/users/stoodkev/gists{/gist_id}","starred_url":"https://api.github.com/users/stoodkev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoodkev/subscriptions","organizations_url":"https://api.github.com/users/stoodkev/orgs","repos_url":"https://api.github.com/users/stoodkev/repos","events_url":"https://api.github.com/users/stoodkev/events{/privacy}","received_events_url":"https://api.github.com/users/stoodkev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stoodkev/SteemPlus","description":"SteemPlus is a lightweight browser extension adding new features to your Steemit/Busy experience: - Voting slider for minnows - Possibility to filter (by tag/resteem/reputation) and sort ( by date/payout/votes) - Switch between Busy Steemit and Steemd by keyboard shortcuts - Delegation of Steem Power directly from the wallet","fork":false,"url":"https://api.github.com/repos/stoodkev/SteemPlus","forks_url":"https://api.github.com/repos/stoodkev/SteemPlus/forks","keys_url":"https://api.github.com/repos/stoodkev/SteemPlus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stoodkev/SteemPlus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stoodkev/SteemPlus/teams","hooks_url":"https://api.github.com/repos/stoodkev/SteemPlus/hooks","issue_events_url":"https://api.github.com/repos/stoodkev/SteemPlus/issues/events{/number}","events_url":"https://api.github.com/repos/stoodkev/SteemPlus/events","assignees_url":"https://api.github.com/repos/stoodkev/SteemPlus/assignees{/user}","branches_url":"https://api.github.com/repos/stoodkev/SteemPlus/branches{/branch}","tags_url":"https://api.github.com/repos/stoodkev/SteemPlus/tags","blobs_url":"https://api.github.com/repos/stoodkev/SteemPlus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stoodkev/SteemPlus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stoodkev/SteemPlus/git/refs{/sha}","trees_url":"https://api.github.com/repos/stoodkev/SteemPlus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stoodkev/SteemPlus/statuses/{sha}","languages_url":"https://api.github.com/repos/stoodkev/SteemPlus/languages","stargazers_url":"https://api.github.com/repos/stoodkev/SteemPlus/stargazers","contributors_url":"https://api.github.com/repos/stoodkev/SteemPlus/contributors","subscribers_url":"https://api.github.com/repos/stoodkev/SteemPlus/subscribers","subscription_url":"https://api.github.com/repos/stoodkev/SteemPlus/subscription","commits_url":"https://api.github.com/repos/stoodkev/SteemPlus/commits{/sha}","git_commits_url":"https://api.github.com/repos/stoodkev/SteemPlus/git/commits{/sha}","comments_url":"https://api.github.com/repos/stoodkev/SteemPlus/comments{/number}","issue_comment_url":"https://api.github.com/repos/stoodkev/SteemPlus/issues/comments{/number}","contents_url":"https://api.github.com/repos/stoodkev/SteemPlus/contents/{+path}","compare_url":"https://api.github.com/repos/stoodkev/SteemPlus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stoodkev/SteemPlus/merges","archive_url":"https://api.github.com/repos/stoodkev/SteemPlus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stoodkev/SteemPlus/downloads","issues_url":"https://api.github.com/repos/stoodkev/SteemPlus/issues{/number}","pulls_url":"https://api.github.com/repos/stoodkev/SteemPlus/pulls{/number}","milestones_url":"https://api.github.com/repos/stoodkev/SteemPlus/milestones{/number}","notifications_url":"https://api.github.com/repos/stoodkev/SteemPlus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stoodkev/SteemPlus/labels{/name}","releases_url":"https://api.github.com/repos/stoodkev/SteemPlus/releases{/id}","deployments_url":"https://api.github.com/repos/stoodkev/SteemPlus/deployments","created_at":"2017-09-28T22:20:49Z","updated_at":"2017-11-11T22:49:10Z","pushed_at":"2017-12-29T22:19:39Z","git_url":"git://github.com/stoodkev/SteemPlus.git","ssh_url":"git@github.com:stoodkev/SteemPlus.git","clone_url":"https://github.com/stoodkev/SteemPlus.git","svn_url":"https://github.com/stoodkev/SteemPlus","homepage":"","size":894,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":6,"open_issues":2,"watchers":1,"default_branch":"master","score":34.571423},"pullRequests":[],"platform":"github","type":"development","tags":["utopian-io","steemdev","dev","news","opensource"],"links":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1514586802/af4vyvmin522u2lr7dza.png","https://github.com/stoodkev/SteemPlus/commit/fc9b8ccc55f390209fdb1b54c16ca80fe47825fa"],"image":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1514586802/af4vyvmin522u2lr7dza.png"]}"
created2017-12-29 22:46:54
last_update2017-12-29 22:46:54
depth0
children13
last_payout2018-01-05 22:46:54
cashout_time1969-12-31 23:59:59
total_payout_value59.300 HBD
curator_payout_value22.277 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,455
author_reputation190,234,366,367,023
root_title"Making SteemPlus faster!"
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id25,953,141
net_rshares7,684,668,084,988
author_curate_reward""
vote details (72)
@atiqur ·
oh wow. it will really helpful. THANK you
properties (22)
authoratiqur
permlinkre-stoodkev-making-steemplus-faster-20171230t170856873z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2017-12-30 17:08:54
last_update2017-12-30 17:08:54
depth1
children0
last_payout2018-01-06 17:08:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length41
author_reputation64,504,974,518
root_title"Making SteemPlus faster!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id26,079,360
net_rshares0
@dutch ·
$0.52
Thank you for the contribution. It has been approved.

Awesome to see a developer recognise that a code base needs to be maintained to prevent issues compounding down the line. Great work! Looking forward to 1UP integration.

You can contact us on [Discord](https://discord.gg/UCvqCsx).
**[[utopian-moderator]](https://utopian.io/moderators)**
👍  
properties (23)
authordutch
permlinkre-stoodkev-making-steemplus-faster-20171230t114931295z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2017-12-30 11:49:33
last_update2017-12-30 11:49:33
depth1
children1
last_payout2018-01-06 11:49:33
cashout_time1969-12-31 23:59:59
total_payout_value0.393 HBD
curator_payout_value0.131 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length343
author_reputation11,905,004,165,125
root_title"Making SteemPlus faster!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id26,035,303
net_rshares39,588,441,013
author_curate_reward""
vote details (1)
@stoodkev ·
Thanks man! I still need to push a second update to finish cleaning the code before starting to work on the V2 and SteemConnect, it takes a lot of time but my code really needed some cleaning haha. And then, it should speed up the process for the new features coming in.
properties (22)
authorstoodkev
permlinkre-dutch-re-stoodkev-making-steemplus-faster-20171231t062310191z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2017-12-31 06:23:09
last_update2017-12-31 06:23:09
depth2
children0
last_payout2018-01-07 06:23:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length270
author_reputation190,234,366,367,023
root_title"Making SteemPlus faster!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id26,166,710
net_rshares0
@flauwy ·
$0.90
Thanks for improving your great browser extension constantly. :)
👍  
properties (23)
authorflauwy
permlinkre-stoodkev-making-steemplus-faster-20171229t225110691z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2017-12-29 22:51:18
last_update2017-12-29 22:51:18
depth1
children1
last_payout2018-01-05 22:51:18
cashout_time1969-12-31 23:59:59
total_payout_value0.861 HBD
curator_payout_value0.041 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length64
author_reputation296,259,911,900,510
root_title"Making SteemPlus faster!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id25,953,583
net_rshares68,712,653,739
author_curate_reward""
vote details (1)
@stoodkev ·
Always ;) 
Next step is SteemConnect, and then I ll be all set for implementing the 1UP button ;)
properties (22)
authorstoodkev
permlinkre-flauwy-re-stoodkev-making-steemplus-faster-20171229t225735589z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2017-12-29 22:57:36
last_update2017-12-29 22:57:36
depth2
children0
last_payout2018-01-05 22:57:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length97
author_reputation190,234,366,367,023
root_title"Making SteemPlus faster!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id25,954,242
net_rshares0
@julienbh ·
$0.87
Awesome! What kind of features do you think will make it to the next version?
👍  
properties (23)
authorjulienbh
permlinkre-stoodkev-making-steemplus-faster-20171229t225524875z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2017-12-29 22:55:27
last_update2017-12-29 22:55:27
depth1
children5
last_payout2018-01-05 22:55:27
cashout_time1969-12-31 23:59:59
total_payout_value0.840 HBD
curator_payout_value0.027 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length77
author_reputation6,197,949,349,987
root_title"Making SteemPlus faster!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id25,954,013
net_rshares66,283,418,506
author_curate_reward""
vote details (1)
@stoodkev ·
$0.12
Thanks! 
Next I will integrate SteemConnect in order to let you guys use all the features without using any private key, and then add some more awesome features. I am thinking about taking and enhancing Steemit More Info features since they are buggy and @armandocat didn't show up in more than 2 months.
👍  
properties (23)
authorstoodkev
permlinkre-julienbh-re-stoodkev-making-steemplus-faster-20171229t225921877z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["armandocat"],"app":"steemit/0.1"}
created2017-12-29 22:59:21
last_update2017-12-29 22:59:21
depth2
children4
last_payout2018-01-05 22:59:21
cashout_time1969-12-31 23:59:59
total_payout_value0.117 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length304
author_reputation190,234,366,367,023
root_title"Making SteemPlus faster!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id25,954,419
net_rshares9,160,930,473
author_curate_reward""
vote details (1)
@julienbh ·
$0.21
Great idea. I use the extension everyday and I totally think it could be better. Still the goods counters the bads.
👍  
properties (23)
authorjulienbh
permlinkre-stoodkev-re-julienbh-re-stoodkev-making-steemplus-faster-20171229t230116450z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2017-12-29 23:01:21
last_update2017-12-29 23:01:21
depth3
children3
last_payout2018-01-05 23:01:21
cashout_time1969-12-31 23:59:59
total_payout_value0.213 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length115
author_reputation6,197,949,349,987
root_title"Making SteemPlus faster!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id25,954,631
net_rshares16,310,579,422
author_curate_reward""
vote details (1)
@utopian-1up ·
<div class="pull-left">

![1UP-200h.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1514394462/jjad0am4qyaokzb3ffzo.png)




</div>

<div class="text-justify">

<br>

You've got a <code>1UP</code> from the @utopian-1up curation trail. __43 Utopians__ have upvoted your quality contribution to the open source community. 

<code>[Join](https://steemit.com/utopian-io/@flauwy/steemy-ep-46-how-to-create-and-follow-a-curation-trail-with-steemauto) 1UP for better posts and high curation rewards.</code>

_1UP is neither organized nor endorsed by Utopian.io!_

</div>
properties (22)
authorutopian-1up
permlinkre-stoodkev-making-steemplus-faster-20171229t230711833z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"busy","app":"busy/2.2.0"}
created2017-12-29 23:07:21
last_update2017-12-29 23:07:21
depth1
children0
last_payout2018-01-05 23:07:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length571
author_reputation2,324,758,056,093
root_title"Making SteemPlus faster!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id25,955,223
net_rshares0
@utopian-io ·
### Hey @stoodkev I am @utopian-io. I have just upvoted you!
#### Achievements
- Seems like you contribute quite often. AMAZING!
#### Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER!
- <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness With SteemConnect</a>
- <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness with SteemConnect</a>
- Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a>

[![mooncryption-utopian-witness-gif](https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif)](https://steemit.com/~witnesses)

**Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
properties (22)
authorutopian-io
permlinkre-stoodkev-making-steemplus-faster-20171230t164440316z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2017-12-30 16:44:39
last_update2017-12-30 16:44:39
depth1
children0
last_payout2018-01-06 16:44:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,006
author_reputation152,955,367,999,756
root_title"Making SteemPlus faster!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id26,075,586
net_rshares0