Erik (ehuelsmann), John (freelock), and myself (dcg)
have been discussing the possibility of stripping at least
dojox (unused) and preferably all of the dojo source tree
from the LedgerSMB repository primarily to reduce the download
size, and disk footprint.
It is worth pointing out that it is undesirable to
use an OS package to provide dojo as there are known to be
issues from minor release to minor release that would break
LedgerSMB. This forces us to use and update our own local
version of dojo which has historically been the complete
source held within the UI/lib/dojo/ directory
If we do remove the entire dojo src it would be
replaced with a "built" version of dojo that only includes the
parts we are using.
In testing it was found that the following size
improvements were obtained.
* To obtain these gains dojox and or dojo were removed from the entire history of the repository using a git tool called "bfg" Once the built version of dojo is added, there will be a small size increase that is yet to be determined but probably about 1-2M (download) ** taken from git pull progress after completion *** obtained with "du -sh . " from the top level of the repo
The benefits are significant, even if we only remove
There are however some downsides that will only
affect some users and developers.
We are still doing tests to verify how much work this
would be for both cases,
The three sample repositories were created as a
snapshot in time from the normal ledgersmb repository using
the methods outlined below.
lsmb-test-full will work to run
LedgerSMB, but this is NOT RECOMMENDED
All three lsmb-test-* repositories contain the exact
same LedgerSMB code.
These lsmb-test* repositories are for testing what
will happen if/when we strip dojo/dojox from the repository.
Keep an eye out for a follow up (reply to this thread) email with some things we would like people to test.
clone the original repo
clone the new repo
you can now do some checks to make sure the 2 repo's are the
Lets try shrinking it by deleting dojox from all of
The steps are very similar to creating a mirror, we just need to
run BFG before we push to the new repo (which can also be the
original repo if you want).
we will use a sample repository in my userspace (sbts) that was
created using the above Mirror technique from lsmb-test-full
The same shrinking process was used to create
lsmb-test-shrunk-2 but removing dojo instead of dojox
_______________________________________________ Ledger-smb-users mailing list ..hidden.. https://lists.sourceforge.net/lists/listinfo/ledger-smb-users